lkml.org 
[lkml]   [2001]   [Dec]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: Maximum heap size?
Date
> If you are hitting a 1GB limit I would assume the jvm isn't very bright
> about its allocation of resources. You should run out at something like
> 2.5Gb of allocations. (you lose some to app and library maps)

Specifically, the jvm is probably getting memory from brk(), because brk()
only operates in the ~1GB region between 0x08000000 + epsilon (where the
executable ends) and 0x40000000 (where shared libs begin). The easiest way
to get more than 1GB is to mmap() anonymous pages (which will come from the
remaining ~2GB region between 0x40000000 and 0xBFFFFFFF). e.g. glibc will
use anonymous mmap() to fulfill large malloc() requests.

Regards,
Dan

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:13    [W:0.033 / U:0.352 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site