[SOLVED] Is there a Per Process Memory Limit of 3GB on 64-bit Linux?
Linux - NewbieThis 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.
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.
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?
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.