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 |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
05-03-2012, 11:41 PM
|
#1
|
LQ Newbie
Registered: May 2012
Distribution: RHEL
Posts: 1
Rep: 
|
Is there a Per Process Memory Limit of 3GB on 64-bit Linux?
A 64-bit Linux machine used as server can have multiple CPU cores and addressable memory far in exess of 4GB. For example, I would like a Java (JVM) process on such a 32GB 16-CPU Core machine to use more than 20 GB of RAM. I am under the impression that that is very much doable. Setting ulimit to right value (ulimit m to unlimited?) should help. But I have been surprised to see a post http://docs.oracle.com/cd/E19316-01/...eii/index.html that seems to indicate that there is 3GB per process limit on 64-bit Linux. I am a Java guy, but do not have deep knowledge of Linux. Could a Linux guru comment if this limit really exists or this can be increased? If it can be increased, how?
Thanks and Regards.
|
|
|
05-09-2012, 05:33 PM
|
#2
|
Senior Member
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979
Rep: 
|
Hello amal_s, welcome to LQ,
as far as I know (I'm not an expert for hardware) the limitations are 3GB per process on x86-Linux with pae-kernel (the pae-kernel supports up to 64GB of RAM on a 32bit system, but limits each process to a maximum of 3GB of RAM).
On a 64bit there is no 3GB limit per process. This is true for Linux in general, but I don't know if and which possibilities a programmer has, to limit the memory for one process of his application.
You should use the report-button at your post and ask a Moderator to move your thread to the "Programming"-section of LQ here http://www.linuxquestions.org/questions/programming-9/. I suppose there are people who are capable to answer your question in more detail.
Markus
|
|
|
05-09-2012, 05:57 PM
|
#3
|
LQ Guru
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573
|
As markush said, that limit is for 32-bit OS with a pae kernel. A true 64-bit OS does not have that restriction. I regularly use 30GB+ in a single process on my machines running Fedora 64-bit.
|
|
|
05-09-2012, 07:19 PM
|
#4
|
LQ Guru
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,430
|
Well, that link is to the Official docs at Oracle (formerly Sun), so should be correct.
Seems an odd limit to me, but they should know know; they own/wrote it.
Best bet is to ask Oracle themselves.
|
|
|
05-09-2012, 08:06 PM
|
#5
|
Moderator
Registered: Mar 2008
Posts: 22,346
|
I agree that Java is the limit, not a theoretical limit.
Notice how they seem to favor Solaris. If you need to you can use it or an open version just as well as linux generally.
Last edited by jefro; 05-09-2012 at 08:07 PM.
|
|
|
05-11-2012, 06:28 PM
|
#6
|
Moderator
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,794
|
Quote:
Originally Posted by chrism01
Well, that link is to the Official docs at Oracle (formerly Sun), so should be correct.
|
This value is only relevant to a 32 bit JVM running on a 64-bit kernel. A 64 bit JVM will support a 20 GB (or larger) heap.
|
|
1 members found this post helpful.
|
All times are GMT -5. The time now is 01:24 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|