Perhaps easier to just use jmap? sudo jmap -heap <jvmpid>
Patrick On Thu, Nov 10, 2011 at 3:49 PM, Ed Sexton <[email protected]> wrote: > Hi Henry, > > I checked the process listing via ps and top, and saw VIRT=6477m and > RES=83m. > > How would one check if it is the jvm heap vs mapped space? > > Thanks as always Henry. > Ed > > On Thu, Nov 10, 2011 at 2:04 PM, Henry Robinson <[email protected]> wrote: > >> Ed - how are you making the observation that the heap size is 6477m? Is it >> from a profiler, or from top or similar? The amount of virtual memory >> mapped for Java processes can often be very large, especially on recent >> RHEL systems with the new arena allocator in glibc. Worth checking whether >> it's the JVM heap or the amount of mapped space. >> >> cheers, >> Henry >> >> On 10 November 2011 13:47, Ed Sexton <[email protected]> wrote: >> >> > Hello Group- >> > >> > I am running CDH zookeeper version 3.3.3+12.12 and noticed that zookeeper >> > is running with a heapsize of 6477m. >> > >> > I start zookeeper standalone, via /etc/init.d/hadoop-zookeeper-server. I >> > do not see reference to any ZOOKEEPER_HEAPIZE in the startup or zoo.cfg, >> > nor do I see any special JVMFLAGS in export/usr/bin/zookeeper-server, >> which >> > is what is called by the startup script, it just has this definition: >> > >> > JVMFLAGS=-Dzookeeper.log.threshold=INFO >> > >> > Can someone guide me to where the 6GB heapsize is being referenced? This >> > seems a bit large of a heap. >> > >> > Thanks for your guidance. >> > >> > Sincerely, >> > Ed >> > >> >> >> >> -- >> Henry Robinson >> Software Engineer >> Cloudera >> 415-994-6679 >> > > > > -- > Sincerely, > Ed Sexton > e: [email protected] > gv: (408) 475-2358 >
