Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
which log file you saw the error ?
It is generally seen in catalina.out and gc.out would some info too, in case of tomcat so again my question is what are you using to serve java application? is it tomcat or jboss ?
You need to check the java logs, in most cases java outputs most information in a file called catalina.out. It just depends on the actual program. Without details, no on here will know. In most cases, there are two ways to fix java "out of memory" errors.. you either start Java to use more JVM max memory in the programs JAVA options or you actually need to add more memory to your system.
well i think you restarted java and that worked for you..so would add here that this "out of memory" error could be because of memory leak or as @trickykid said, a possibility that your application actually needs more memory to grow. The suggestion would again be check the logs to see what caused it.