1016
Points
Questions
0
Answers
3
-
Hi, you can increase the heap memory for your program. If the sync is running in .sh or .bat process you can add -xmx.
java -xmx1024m <your program/class file name>.
By default heap size will be 1/4th of your physical memory.
In 32 bit JVM and OS, you can increase up to 75%.
In 64 bit JVM and OS, there is no limit you can increase more than the physical memory. But system will thrash, if you increase more than the physical memory.
It is highly recommended to utilize upto 75% for heap memory, since JVM will utilize some memory for permgen. And other services and program also utilize some memory from OS.
Based on your OS, physical memory, JVM, you can adjust the heap size to run program.
- 3536 views
- 2 answers
- 0 votes
-
- 1554 views
- 2 answers
- 0 votes
-
- 1348 views
- 2 answers
- 0 votes