1,645
3
Essay, 1 pages (200 words)

Java heap size problem

Problem: The error ‘java. lang. OutOfMemoryError: Java heap space’ is caused when the JVM (Java Virtual Machine) runs out of available memory during processing. This can be caused by: a large number of files on your system an extremely large benchmark document an OVAL test that returns a large number of results a system that doesn’t meet the minimum memory requirement of the NG Scoring tool (256MB) The NG tool by default sets a maximum heap size of 256MB. The directions below describe how to increase this value on UNIX and Windows systems.

Solution: For UNIX systems: When running the tool include the heap space argument ‘-Xmx’. For example: ./ng. sh -Xmx512m Where ‘-Xmx512m’ sets the maximum heap size to 512MB of memory. Higher values may be used where additional memory is available. For Windows systems: 1. Edit cli. bat located in the directory the tool was installed to. This directory is ‘c: Program FilesThe Center for Internet SecurityCIS NG Scoring Tool’ by default on most systems. 2. On line 33 change the text -Xmx256m to a larger value.

For example: java -Xmx512m -Djava. library. path=. /lib -classpath org. cis. cli. Application %* Where ‘-Xmx512m’ sets the maximum heap size to 512MB of memory. Higher values may be used where additional memory is available. 3. Repeat step 2 on gui. bat also located in the directory the tool was installed to. Additional Comments: Example exception: org. cis. ng. interpreter

Thank's for Your Vote!
Java heap size problem. Page 1
Java heap size problem. Page 2

This work, titled "Java heap size problem" was written and willingly shared by a fellow student. This sample can be utilized as a research and reference resource to aid in the writing of your own work. Any use of the work that does not include an appropriate citation is banned.

If you are the owner of this work and don’t want it to be published on AssignBuster, request its removal.

Request Removal
Cite this Essay

References

AssignBuster. (2022) 'Java heap size problem'. 29 September.

Reference

AssignBuster. (2022, September 29). Java heap size problem. Retrieved from https://assignbuster.com/java-heap-size-problem/

References

AssignBuster. 2022. "Java heap size problem." September 29, 2022. https://assignbuster.com/java-heap-size-problem/.

1. AssignBuster. "Java heap size problem." September 29, 2022. https://assignbuster.com/java-heap-size-problem/.


Bibliography


AssignBuster. "Java heap size problem." September 29, 2022. https://assignbuster.com/java-heap-size-problem/.

Work Cited

"Java heap size problem." AssignBuster, 29 Sept. 2022, assignbuster.com/java-heap-size-problem/.

Get in Touch

Please, let us know if you have any ideas on improving Java heap size problem, or our service. We will be happy to hear what you think: [email protected]