LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-12-2012, 01:13 PM   #1
vicky007aggrwal
Member
 
Registered: Aug 2012
Posts: 95

Rep: Reputation: Disabled
Redhat Linux JVM quest


Hi All,

Can you please share any weblink which helps me in understanding that what all are the recommended settings for SUN JDK with repect to different redhat kernel version

Actually i am facing frequent Out of memory exception running on linux 64 bit jvm, so just want to understand that is there any in particular recommendation/suggestion linux has for the 64 bit sun jdk.


Thanks in advance for the help
 
Old 09-12-2012, 04:53 PM   #2
rigor
Member
 
Registered: Sep 2003
Location: 19th moon ................. ................Planet Covid ................Another Galaxy;............. ................Not Yours
Posts: 705

Rep: Reputation: Disabled
I'm not quite sure how you are trying to relate the JVM settings to a particular RedHat kernel version.

But the amount of memory needed can depend very much on the memory needed by the program the JVM is running.

Have you looked at the options to set memory limits on the JVM, such as the options beginning with the phrase -Xm ???

Often there can be manual pages that get installed with the JVM. So a command such as:

Code:
man java
will likely show you the options you can supply to the JVM.
 
Old 09-12-2012, 05:48 PM   #3
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,627

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
Quote:
recommended settings for SUN JDK
sun no longer exists, there IS NO "sun" jdk
there IS the oracle java and the open source "OpenJDK"

almost every OS has moved to the OpenJDK after oracle wanted to close source java


as to memory problems ???
without knowing even the VERY basic information there is NO way we can even think of helping

we do NOT know what operating system this is other than " some" type of RHEL
red hat what???
4 ,5 or 6

you say 64 bit
BUT what VERSION of java is installed ????
and is it 32 bit or 64 bit?

and what is the HARDWARE ?
dose this box have less that 512 meg ram ?
or
more than 8 Gig's of ram ?
 
Old 09-12-2012, 08:33 PM   #4
vicky007aggrwal
Member
 
Registered: Aug 2012
Posts: 95

Original Poster
Rep: Reputation: Disabled
Thanks guys for respOnding

I m having Rhel 6 , having 30Gb ram, having oracle jdk 1.6 update 24 (64 bit).

Actually i m using jconsole to monitor the process memory..& for that process
I have set xmx1024m but after after setting that in jconsole
I m seeing the maxium memory as 2gb.. Why is that can u guys please help me in understand that

---- jconsole displays following for heap usage ---
Used memory@
Committed memory@
Maxium memory@ i did nt understand how this value varies in rhel 6, having 64 bit jvm
 
Old 09-13-2012, 06:53 PM   #5
rigor
Member
 
Registered: Sep 2003
Location: 19th moon ................. ................Planet Covid ................Another Galaxy;............. ................Not Yours
Posts: 705

Rep: Reputation: Disabled
OK vicky007aggrwal,

So now we know you're not using OpenJDK, IBM's Java SDK for Linux, etc., you're using Sun's JDK, and part of your concern seems to come from interpreting JConsole output.

In what you've posted, it may be that my browser is not doing a good job of showing me the page, but after the line containing the phrase "jconsole displays following for heap usage", I'm seeing three lines which each include the word "memory" followed immediately by an "at" sign @ rather then a numeric value. So it's not clear to me where JConsole is displaying the 2gb.

In general I can speculate that maybe some of the confusion might be that there can be a difference between things such as the maximum amount of memory used by the JVM, and the maximum amount of memory allocated to objects created by the running Java application program.
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
JVM memory usage is very high on SUSE linux and also on redhat linux, far less on win NatureBalances SUSE / openSUSE 1 10-09-2009 04:03 PM
how to load JVM into linux ubuntu? lamcheeseng Ubuntu 1 07-12-2009 10:50 PM
switching from gnu jvm to sun jvm without uninstalling gnu jvm vishal.gokhale Linux - Newbie 1 06-10-2009 09:14 AM
Running Quest on Linux. Olle Gladso Linux - General 2 04-01-2007 05:53 PM
JVM For Linux kannan Linux - General 0 02-06-2003 10:18 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:42 AM.

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