LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This 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


Reply
  Search this Thread
Old 01-22-2014, 12:15 AM   #1
just.srad
Member
 
Registered: Apr 2008
Location: Singapore
Distribution: Slackware 14.0
Posts: 153

Rep: Reputation: 15
Red Hat Linux server


Hi,

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..

Thanks in advance.


Justin
 
Old 01-22-2014, 02:23 AM   #2
SAbhi
Member
 
Registered: Aug 2009
Location: Bangaluru, India
Distribution: CentOS 6.5, SuSE SLED/ SLES 10.2 SP2 /11.2, Fedora 11/16
Posts: 665

Rep: Reputation: Disabled
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 ?
 
1 members found this post helpful.
Old 01-22-2014, 05:40 PM   #3
just.srad
Member
 
Registered: Apr 2008
Location: Singapore
Distribution: Slackware 14.0
Posts: 153

Original Poster
Rep: Reputation: 15
Actually, it's customer's server and my job is to help out in doing the monitoring.

In regard to your question, perhaps i could use the command "pstree" to check which application is using the java.

I shall post it here again once i got the information.
 
Old 01-22-2014, 07:27 PM   #4
SAbhi
Member
 
Registered: Aug 2009
Location: Bangaluru, India
Distribution: CentOS 6.5, SuSE SLED/ SLES 10.2 SP2 /11.2, Fedora 11/16
Posts: 665

Rep: Reputation: Disabled
well that would not help to resolve issue, you may need to get the detailed logs..
 
Old 01-22-2014, 09:15 PM   #5
just.srad
Member
 
Registered: Apr 2008
Location: Singapore
Distribution: Slackware 14.0
Posts: 153

Original Poster
Rep: Reputation: 15
ok.. which log files should i look out for ? Maybe you can make some assumption of the applications that they use which in turn run the
Java process.

Thanks.
 
Old 01-22-2014, 09:18 PM   #6
SAbhi
Member
 
Registered: Aug 2009
Location: Bangaluru, India
Distribution: CentOS 6.5, SuSE SLED/ SLES 10.2 SP2 /11.2, Fedora 11/16
Posts: 665

Rep: Reputation: Disabled
NO Assumptions!! as i said in my earlier post. you have to ask your client for the info.
 
Old 01-24-2014, 08:22 PM   #7
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
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.
 
Old 01-26-2014, 09:41 PM   #8
just.srad
Member
 
Registered: Apr 2008
Location: Singapore
Distribution: Slackware 14.0
Posts: 153

Original Poster
Rep: Reputation: 15
Thanks trickykid, your suggestion is helpful. :-)
 
Old 01-26-2014, 10:17 PM   #9
SAbhi
Member
 
Registered: Aug 2009
Location: Bangaluru, India
Distribution: CentOS 6.5, SuSE SLED/ SLES 10.2 SP2 /11.2, Fedora 11/16
Posts: 665

Rep: Reputation: Disabled
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.
 
Old 01-27-2014, 10:00 PM   #10
just.srad
Member
 
Registered: Apr 2008
Location: Singapore
Distribution: Slackware 14.0
Posts: 153

Original Poster
Rep: Reputation: 15
Thanks Sabhi. :-)
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Should I use desktop Red Hat Linux or Server Red hat linux? niner710 Linux - Newbie 3 04-15-2008 10:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:54 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration