LinuxQuestions.org
Visit Jeremy's Blog.
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 05-04-2012, 12:41 AM   #1
amal_s
LQ Newbie
 
Registered: May 2012
Distribution: RHEL
Posts: 1

Rep: Reputation: Disabled
Question 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.
 
Old 05-09-2012, 06:33 PM   #2
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979

Rep: Reputation: Disabled
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
 
Old 05-09-2012, 06:57 PM   #3
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,552

Rep: Reputation: 2112Reputation: 2112Reputation: 2112Reputation: 2112Reputation: 2112Reputation: 2112Reputation: 2112Reputation: 2112Reputation: 2112Reputation: 2112Reputation: 2112
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.
 
Old 05-09-2012, 08:19 PM   #4
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.9, Centos 7.3
Posts: 17,411

Rep: Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397
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.
 
Old 05-09-2012, 09:06 PM   #5
jefro
Moderator
 
Registered: Mar 2008
Posts: 17,101

Rep: Reputation: 2552Reputation: 2552Reputation: 2552Reputation: 2552Reputation: 2552Reputation: 2552Reputation: 2552Reputation: 2552Reputation: 2552Reputation: 2552Reputation: 2552
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 09:07 PM.
 
Old 05-11-2012, 07:28 PM   #6
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.3, Oracle Linux, Mint
Posts: 9,716

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
Quote:
Originally Posted by chrism01 View Post
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.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[SOLVED] Physical and virtual memory upper limit for 32 bit Linux wagaboy Linux - Newbie 4 06-26-2010 07:36 AM
Linux, 64 bit and >3Gb of memory Dee-ehn Linux - Hardware 13 03-28-2008 05:56 AM
64-bit Linux virtual memory limit? wmnwmn Linux - General 1 02-01-2008 11:43 AM

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

All times are GMT -5. The time now is 03:28 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration