Showing posts with label java out of memory exception. Show all posts
Showing posts with label java out of memory exception. Show all posts

Friday, March 30, 2012

Java memory tuning

You may have come in scenario sometime when you program our cede result in error java memory related error, like could not allocate memory on heap for java, These error may result in OutOfMemoryError exceptions or to a reduction in the performance of the Java application, here is the typical setting for java memory so that you can escape these errors.

There is and command line option for java, that defines the maximum size of memory to be allocated to JVM

-Xmx    :  this allows application to run with 70% of max memory uses

Lets see the list of Maximum possible heap size and what is recommended for the heap size specification, as this is just a recommendation not a rule you can decide accordingly.

Featured Posts

Kali Linux Remote Desktop: Access GNOME from Windows Using Native RDP

  Kali Linux + GNOME 50 + GNOME Remote Desktop + Windows Remote Desktop (MSTSC) Getting a full GNOME desktop remotely on Kali Linux can be ...