When handling the Tomcat problem, Tomcat could not start to view the log as follows
[2018-08-17 14:47:01] [info] Invalid maximum heap size: -Xmx4096m
[2018-08-17 14:47:01] [info] The specified size exceeds the maximum representable size. # The specified size exceeds the maximum representable.
[2018-08-17 14:47:01] [395 javajni.c] [error] CreateJavaVM Failed
View JDK version
If it is 64 bit, the last line will be displayed
Java HotSpot(TM) 64-Bit Server VM
Since Tomcat has installed services, you can only change the relevant configuration in the registry. Check the original configuration as follows: . You can see that the maximum memory of jvmmx is set to 4096m, which is not supported by 32 bits. If you modify the parameter value, you can start normally.