简体   繁体   中英

VM options in project properties in netbeans

I got a problem with the java heap space while using servlets in netbeans5.0 and got a solution to resolve it too,they asked to change the VM options of run category in the project properties.But,i couldnt find such option in my properties.Please do tell me what to do with this error. This is the picture of my project properties.

alt text http://img390.imageshack.us/img390/4116/28257416.png

It it's netbeans that is short of memory then edit netbeans\\etc\\netbeans.conf and add/edit to the property netbeans_ default_options something like:

-J-Xms128m -J-Xmx128m -J-XX:PermSize=64m -J-XX:MaxPermSize=128m

If it's your servlet container (tomcat) that is short of memory after many redeployments then right click on tomcat > properties > platform > vm options:

-Xms128m -Xmx128m -XX:PermSize=64m -XX:MaxPermSize=128m

Feel free to experiment with the numbers. The above are semi-random.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM