Change the memory space used by jdk.
When working on a project, sometimes the memory jvm memory is insufficient, which is set in myeclipse.
-Xms128m
-Xmx512m
-XX: PermSize = 128 m
-XX: MaxPermSize = 128 m
How to change java execution memory
1. Open the eclipse configuration file eclipse. ini and change-Xmx (the value represents the maximum memory size that jvm can use)
2. when running the java program, select run> run configuration> arguments and enter-Xms100M-Xmx800M (-Xms indicates the memory size allocated during jvm startup, -Xmx indicates the maximum amount of memory that can be allocated ).
3. If you want to modify the memory of the web server, you can use window> preference> myeclipse> servers> Server Name> server name + version> jdk to modify the memory. Example:-Xms512m-Xmx1024m-XX: PermSize = 256 m
After jdk is installed, does it occupy both hard disk space and memory?
No. When you do not use it, it will not occupy the memory...