Discussion:
[Valgrind-users] Valgrind with Java/Jna
myrmidia
2010-07-30 12:52:02 UTC
Permalink
Hi there,

I try to use valgrind with a Java program to detect memory leak within a 'C' library. This 'C' library is access by JNA (Java Native Access : https://jna.dev.java.net) framework...
For information, this program is running on a Virtual Machine (ESX). The linux is a Centos 5.3 and I use the latest available release of Valgrind on default repository !
The JDK/JRE is the latest available release from SUN.

Command line:
valgrind --leak-check=yes java -jar test.jar
Result :
The program ran perfectly but valgrind doesn't detect nothing AND there's some memory leaks in the library ;-((

Command line:
valgrind --trace-children=yes --leak-check=yes java -jar test.jar
Result :
Error occurred during initialization of VM
Unknown x64 processor: SSE2 not supported

The physical processor on the EXS is a Xeon so it supports SSE2 and I've this log on the stderr with '--verbose' option :
Arch and hwcaps: AMD64, amd64-sse3-cx16

Any idea ???

Best regards,
John Reiser
2010-07-30 13:30:44 UTC
Permalink
Post by myrmidia
Unknown x64 processor: SSE2 not supported
Arch and hwcaps: AMD64, amd64-sse3-cx16
Please post the following info from a terminal session running
on the vmware ESX virtual machine:

$ cat /proc/cpuinfo | sed 6q

which gives the cpu family, model, and stepping, such as:
-----
processor : 0
vendor_id : AuthenticAMD
cpu family : 15
model : 107
model name : AMD Athlon(tm) 64 X2 Dual Core Processor
stepping : 2
-----

--
myrmidia
2010-07-30 14:18:27 UTC
Permalink
This is the output...

processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 15
model name : Intel(R) Xeon(R) CPU X7350 @ 2.93GHz
stepping : 8

For information, this is exactly the real processor on the ESX !

Best regards,
Objet: Re: [Valgrind-users] Valgrind with Java/Jna
Date: Vendredi 30 juillet 2010, 15h30
Post by myrmidia
Unknown x64 processor: SSE2 not
supported
Post by myrmidia
The physical processor on the EXS is a Xeon so it
supports SSE2 and I've this log on the stderr with
Post by myrmidia
Arch and hwcaps: AMD64, amd64-sse3-cx16
Please post the following info from a terminal session
running
   $ cat /proc/cpuinfo  |  sed 6q
-----
processor    : 0
vendor_id    : AuthenticAMD
cpu family    : 15
model        : 107
model name    : AMD Athlon(tm) 64 X2 Dual
Core Processor
stepping    : 2
-----
--
------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use
the
Plug-In Development Kit to bring their C/C++ apps to Palm
for a share
of $1 Million in cash or HP Products. Visit us here for
http://p.sf.net/sfu/dev2dev-palm
_______________________________________________
Valgrind-users mailing list
https://lists.sourceforge.net/lists/listinfo/valgrind-users
Julian Seward
2010-07-30 14:38:16 UTC
Permalink
Post by myrmidia
Hi there,
I try to use valgrind with a Java program to detect memory leak within a
https://jna.dev.java.net) framework... For information, this program is
running on a Virtual Machine (ESX). The linux is a Centos 5.3 and I use
the latest available release of Valgrind on default repository ! The
JDK/JRE is the latest available release from SUN.
valgrind --leak-check=yes java -jar test.jar
The program ran perfectly but valgrind doesn't detect nothing AND there's
some memory leaks in the library ;-((
valgrind --trace-children=yes --leak-check=yes java -jar test.jar
Error occurred during initialization of VM
Unknown x64 processor: SSE2 not supported
The physical processor on the EXS is a Xeon so it supports SSE2 and I've
this log on the stderr with '--verbose' option : Arch and hwcaps: AMD64,
amd64-sse3-cx16
Valgrind is claiming to be a Core 2 E6600. The CPU in the
real machine and the one provided by ESX is irrelevant.
Strange that your Java VM doesn't want to run on that.

J
Post by myrmidia
Any idea ???
Best regards,
---------------------------------------------------------------------------
--- The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
http://p.sf.net/sfu/dev2dev-palm
_______________________________________________
Valgrind-users mailing list
https://lists.sourceforge.net/lists/listinfo/valgrind-users
myrmidia
2010-07-30 14:54:03 UTC
Permalink
Java VM run on that configuration but there's some inconsistency when I'm using valgrind with/without the '--trace-children' option.

Without this option, I have no output from valgrind (but there was some memory leaks in the 'C' library) AND the program ran perfectly.
With this option, unable to initialize the VM...

Best regards,
Objet: Re: [Valgrind-users] Valgrind with Java/Jna
Date: Vendredi 30 juillet 2010, 16h38
On Friday, July 30, 2010, myrmidia
Post by myrmidia
Hi there,
I try to use valgrind with a Java program to detect
memory leak within a
Post by myrmidia
'C' library. This 'C' library is access by JNA (Java
https://jna.dev.java.net) framework... For information,
this program is
Post by myrmidia
running on a Virtual Machine (ESX). The linux is a
Centos 5.3 and I use
Post by myrmidia
the latest available release of Valgrind on default
repository ! The
Post by myrmidia
JDK/JRE is the latest available release from SUN.
valgrind --leak-check=yes java -jar test.jar
The program ran perfectly but valgrind doesn't detect
nothing AND there's
Post by myrmidia
some memory leaks in the library ;-((
valgrind --trace-children=yes --leak-check=yes java
-jar test.jar
Post by myrmidia
Error occurred during initialization of VM
Unknown x64 processor: SSE2 not supported
The physical processor on the EXS is a Xeon so it
supports SSE2 and I've
Post by myrmidia
this log on the stderr with '--verbose' option : Arch
and hwcaps: AMD64,
Post by myrmidia
amd64-sse3-cx16
Valgrind is claiming to be a Core 2 E6600.  The CPU in
the
real machine and the one provided by ESX is irrelevant.
Strange that your Java VM doesn't want to run on that.
J
Post by myrmidia
Any idea ???
Best regards,
---------------------------------------------------------------------------
Post by myrmidia
--- The Palm PDK Hot Apps Program offers developers
who use the
Post by myrmidia
Plug-In Development Kit to bring their C/C++ apps to
Palm for a share
Post by myrmidia
of $1 Million in cash or HP Products. Visit us here
http://p.sf.net/sfu/dev2dev-palm
_______________________________________________
Valgrind-users mailing list
https://lists.sourceforge.net/lists/listinfo/valgrind-users
Loading...