LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 05-03-2012, 11:41 PM   #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, 05: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, 05:57 PM   #3
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
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, 07:19 PM   #4
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
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, 08:06 PM   #5
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,981

Rep: Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625
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.
 
Old 05-11-2012, 06:28 PM   #6
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
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



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 06:36 AM
Linux, 64 bit and >3Gb of memory Dee-ehn Linux - Hardware 13 03-28-2008 04:56 AM
64-bit Linux virtual memory limit? wmnwmn Linux - General 1 02-01-2008 10:43 AM

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

All times are GMT -5. The time now is 05:22 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