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.
Notices
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.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have encountered a server hung due to the "Out of Memory" caused by a Java process.
May someone enlighten me on how to investigate the error..like which log files i can look out for in order for me to check actually how much memory is required by this particular Java process..
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.