I think I increased my heap size to 1 GB in NetBeans since I changed the config to look like this:
netbeans_default_options="-J-Xmx1g ......
After I restarted NetBeans, can I be sure that my app is given 1 GB now?
Is there a way to verify this?
Attach with jvisualvm from Sun Java 6 JDK. Startup flags are listed.
For check your java application heap size and CPU time use JProfiler tools that will access your JVM and display all heap and CPU time allocation
plug in available for eclipse and intellej Idea IDE
Link for Download Jprofiler
http://www.ej-technologies.com/download/jprofiler/files
Use this code:
It was useful to me to know it.
You can use jconsole (standard with most JDKs) to check heap sizes of any java process.
Personal favourite for when jvisualvm is overkill or you need cli-only: jvmtop