RunningVoltDb with valgrind

39 views
Skip to first unread message

mike alexeev

unread,
May 15, 2012, 12:34:23 PM5/15/12
to voltd...@googlegroups.com
Hi All, are there any tricks to run VoltDB server process with valgrind? If I simply try
valgrind --leak-check=full --show-reachable=yes --error-exitcode=-1 /usr/bin/java .....(voltdb options)
 
all I see is a single java processes running, no valgrind. There is an output from the valgrind at the very beggining but then it looks like the java process gets forked and valgrind quits.
 
Thanks,
MIke

Ruth Morgenstein

unread,
May 15, 2012, 1:02:06 PM5/15/12
to voltd...@googlegroups.com
Hi Mike,

We run the following to get a valgrind build and a set of tests running:

ant -Dbuild=memcheck -DVOLT_REGRESSIONS=local -DtimeoutLength=2700000 clean compile voltdbipc eecheck junit

Ruth Morgenstein
QA Manager

mike alexeev

unread,
May 15, 2012, 1:05:43 PM5/15/12
to voltd...@googlegroups.com
Thanks Ruth. I found that you need to add '--trace-children=yes' to the valgrind options. Than you can run it from the command line

Ryan Betts

unread,
May 15, 2012, 1:07:49 PM5/15/12
to voltd...@googlegroups.com
On Tue, May 15, 2012 at 1:05 PM, mike alexeev <michael...@gmail.com> wrote:
> Thanks Ruth. I found that you need to add '--trace-children=yes' to the
> valgrind options. Than you can run it from the command line

Valgrind didn't (used to?) play well with the JVM; the JVM does weird,
horrible and interesting code rewriting that valgrind finds
suspicious.

Would be interesting to know if valgrind's gotten better with JIT'd
code, though.

Ryan.

Ryan Betts

unread,
May 15, 2012, 1:08:52 PM5/15/12
to voltd...@googlegroups.com
> Valgrind didn't (used to?) play well with the JVM; the JVM does weird,
> horrible and interesting code rewriting that valgrind finds
> suspicious.

(So our valgrind command that Ruth sent starts the EE as a separate C
process and only runs valgrind against that - instead of JNI, we do
IPC to the EE in this case).

Ryan.

Ariel Weisberg

unread,
May 15, 2012, 1:27:14 PM5/15/12
to voltd...@googlegroups.com
Indeed, valgrind is not happy with Java, at least not on Ubuntu 12.04
Reply all
Reply to author
Forward
0 new messages