My clients are printing “Java.lang.OutOfMemoryError: Java heap space” errors. What can I do to eliminate these?
Invoke the client JVMs with more heap space; for example, assuming the clients have sufficient RAM, the initial and maximum heap sizes can be forced to 512MB (these values are only suggestions, and will vary depending upon system): java -Xms512m -Xmx512m -XX:+UseParNewGC -XX:+UseConcMarkSweepGC specwebclient More information about heap size and garbage collection can be found here: http://java.sun.com/docs/hotspot/gc1.4.2/faq.html http://java.sun.com/j2se/1.5.0/docs/guide/vm/gc-ergonomics.html Q: When trying to manually access PHP pages (i.e. from a browser), the PHP error log or the response displays “failed to open stream: No such file or directory in [PATH]\inc.common.php” A: You must first initialize the benchmark by running ‘java specweb’ with all the variables in the .config files set properly. The init.php script for each workload will write these variables to init_vars.php, so be sure user the Web server runs as has write permissions for the SPECweb2005 directories. Q: I’m runn
Related Questions
- Im getting java.lang.OutOfMemoryError: Java heap space errors when running large scripts. How can I increase the amount of Java heap space?
- My clients are printing "Java.lang.OutOfMemoryError: Java heap space" errors. What can I do to eliminate these?
- I get an error when trying to build my project: java.lang.OutOfMemoryError: Java heap space?