|
From: Johnny <joh...@ra...> - 2005-10-02 21:11:04
|
Hello, I'm trying to use the memcheck tool with Valgrind-3.0.1 to profile my programs memory usage. Anyway, every time I try to start my program with Valgrind I get the following error and my program exits: --2105-- Reading syms from /usr/local/rainingdata/tigerlogic/xdms/programs/libtlxs.so.0.0.0 (0x194B0000) VG_(get_memory_from_mmap): newSuperblock's request for 2932736 bytes failed. VG_(get_memory_from_mmap): 503744376 bytes already allocated. Sorry. You could try using a tool that uses less memory; eg. addrcheck instead of memcheck. ---- Debugging information follows -------- Valgrind's range is: 0xA0000000 .. 0xBFFFFFFF <<< SHOW_SEGMENTS: VG_(get_memory_from_mmap) failure (49 segments, 12 segnames) ( 0) /usr/local/lib/valgrind/stage2 ( 1) /lib/ld-2.3.2.so ( 2) /lib/libdl-2.3.2.so I tried that trick involving changing KICKSTART_BASE to "0xA0000000" in my configure script, doing "make distclean; make; makeinstall" and I'm still running out of memory. Does anyone have any suggestions or ideas on how to get passed this? I'd appreciate any help! Thanks, Johnny |
|
From: Julian S. <js...@ac...> - 2005-10-02 21:52:59
|
> Does anyone have any suggestions or ideas on how to get passed this? Use the svn trunk instead, which has a completely new and more flexible address space manager. svn co svn://svn.valgrind.org/valgrind/trunk ./autogen.sh ./configure --prefix= etc Let us know if you have more success this way. J |
|
From: Johnny <joh...@ra...> - 2005-10-06 18:29:11
|
Hi Julian,
I used svn to get the trunk of Valgrind and it seems better with memory
management.
However, my server is a Java program and it terminates and gives me the
following error message when I try to start up.
at
jrockit.reflect.NativeMethodInvoker.invoke0(Ljava.lang.Object;ILjava.lan
g.Object;[Ljava.lang.Object;)Ljava.lang.Object;(Unknown Source)
at
jrockit.reflect.NativeMethodInvoker.invoke(Ljava.lang.Object;[Ljava.lang
.Object;)Ljava.lang.Object;(Unknown Source)
at
java.lang.reflect.Method.invoke(Ljava.lang.Object;[Ljava.lang.Object;I)L
java.lang.Object;(Unknown Source)
at
Does Valgrind/memcheck work in profiling the C/C++ shared libraries
dynamically loaded by a Java VM?
Thanks,
Johnny
-----Original Message-----
From: Julian Seward [mailto:js...@ac...]
Sent: Sunday, October 02, 2005 2:59 PM
To: val...@li...
Cc: Johnny
Subject: Re: [Valgrind-users] Valgrind-3.0.1: VG_(get_memory_from_mmap):
newSuperblock's request for 2932736 bytes failed.
> Does anyone have any suggestions or ideas on how to get passed this?
Use the svn trunk instead, which has a completely new and more flexible
address space manager.
svn co svn://svn.valgrind.org/valgrind/trunk
./autogen.sh
./configure --prefix=
etc
Let us know if you have more success this way.
J
|
|
From: Julian S. <js...@ac...> - 2005-10-06 18:32:39
|
> Does Valgrind/memcheck work in profiling the C/C++ shared libraries > dynamically loaded by a Java VM? I don't know. Try adding the flag --smc-check=all and see if that helps. J |
|
From: Nicholas N. <nj...@cs...> - 2005-10-06 18:57:05
|
On Thu, 6 Oct 2005, Julian Seward wrote: >> Does Valgrind/memcheck work in profiling the C/C++ shared libraries >> dynamically loaded by a Java VM? > > I don't know. In theory it should. Johnny, you didn't give much output in your message. Can you give Valgrind's full output when run with the -v flag? Thanks. Nick |