Re: [Jepp-users] Simple test which shows memory leak in Jepp.
Brought to you by:
mrjohnson0
From: Andrew G. <and...@es...> - 2011-01-18 10:35:06
|
Hi Jon, I think we have a slightly modified version of Jepp in FABLE. I remember turning off OPTIMISATION at one point. We should do a diff on the Jepp source code in our repository and the one on the Jepp download sight to be sure. Any changes to the source code might explain why we have a memory leak and Mike does not see one. Andy Quoting Jonathan WRIGHT <wr...@es...>: > Hi Matthew, > > I am able to reproduce the leak using jepp2.4 compiled on redhat > enterprise 4 x86_64 with python2.5.1 and this java: > Java(TM) SE Runtime Environment (build 1.6.0_10-rc-b28) > Java HotSpot(TM) 64-Bit Server VM (build 11.0-b15, mixed mode) > > I also see a problem using the windows version of jepp from the > sourceforge pages (jep-2.5-Java6-python25.exe). Java is up to date > (1.6.0_23) in this case. Full details are below. > > If Mike is not seeing the leak, I'm wondering what we're doing wrong? It > took me a while to figure out how to run the unit test - I hope that > doesn't have an effect. > > Cheers > > Jon > === > > > > Versions: > > C:\Program Files (x86)\Jepp>"c:\Program Files > (x86)\Java\jre6\bin\java.exe" -cp jep.jar jep.Run console.py > > No readline available. > You may want to set the LD_PRELOAD environment variable, see the > README file for details. > > > i.e.: export LD_PRELOAD=/usr/lib/libpython2.3.so.1.0 > > If your platform really doesn't have readline, try this: > http://newcenturycomputers.net/projects/readline.html > >>> import sys > >>> sys.executable > 'c:\\Program Files (x86)\\Java\\jre6\\bin\\java.exe' > >>> sys.version > '2.5.4 (r254:67916, Dec 23 2008, 15:10:54) [MSC v.1310 32 bit (Intel)]' > >>> > > > C:\Users\wright\Programming\builds\jepp\Gerring>"c:\Program Files > (x86)\Java\jre6\bin\java.exe" -cp junit-4.8.1.jar;jep.jar;. > org.junit.runner.JUnitCore JepTest > > > # > # A fatal error has been detected by the Java Runtime Environment: > # > # java.lang.OutOfMemoryError: requested 16777216 bytes for jint in > C:\BUILD_AREA > \jdk6_23\hotspot\src\share\vm\prims\jni.cpp. Out of swap space? > # > # Internal Error (allocation.inline.hpp:39), pid=2056, tid=4028 > # Error: jint in C:\BUILD_AREA\jdk6_23\hotspot\src\share\vm\prims\jni.cpp > # > # JRE version: 6.0_23-b05 > # Java VM: Java HotSpot(TM) Client VM (19.0-b09 mixed mode, sharing > windows-x86 > ) > # An error report file with more information is saved as: > # C:\Users\wright\Programming\builds\jepp\Gerring\hs_err_pid2056.log > # > # If you would like to submit a bug report, please visit: > # http://java.sun.com/webapps/bugreport/crash.jsp > # > > > > > > # > # A fatal error has been detected by the Java Runtime Environment: > # > # java.lang.OutOfMemoryError: requested 16777216 bytes for jint in > C:\BUILD_AREA\jdk6_23\hotspot\src\share\vm\prims\jni.cpp. Out of swap space? > # > # Internal Error (allocation.inline.hpp:39), pid=2056, tid=4028 > # Error: jint in C:\BUILD_AREA\jdk6_23\hotspot\src\share\vm\prims\jni.cpp > # > # JRE version: 6.0_23-b05 > # Java VM: Java HotSpot(TM) Client VM (19.0-b09 mixed mode, sharing > windows-x86 ) > # If you would like to submit a bug report, please visit: > # http://java.sun.com/webapps/bugreport/crash.jsp > # > > --------------- T H R E A D --------------- > > Current thread (0x004fec00): JavaThread "main" [_thread_in_vm, id=4028, > stack(0x00430000,0x00480000)] > > Stack: [0x00430000,0x00480000], sp=0x0047efd0, free space=315k > Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, > C=native code) > V [jvm.dll+0x200a27] > V [jvm.dll+0xa53fc] > V [jvm.dll+0x107e10] > > Java frames: (J=compiled Java code, j=interpreted, Vv=VM code) > j jep.Jep.eval(JLjava/lang/String;)V+0 > j jep.Jep.eval(Ljava/lang/String;)Z+123 > J JepTest.testSendingMemoryWithPythonCallingData()V > v ~StubRoutines::call_stub > j > sun.reflect.NativeMethodAccessorImpl.invoke0(Ljava/lang/reflect/Method;Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+0 > j > sun.reflect.NativeMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+87 > j > sun.reflect.DelegatingMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+6 > j > java.lang.reflect.Method.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+161 > j > org.junit.runners.model.FrameworkMethod$1.runReflectiveCall()Ljava/lang/Object;+15 > j > org.junit.internal.runners.model.ReflectiveCallable.run()Ljava/lang/Object;+1 > j > org.junit.runners.model.FrameworkMethod.invokeExplosively(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+10 > j org.junit.internal.runners.statements.InvokeMethod.evaluate()V+12 > j > org.junit.runners.BlockJUnit4ClassRunner.runChild(Lorg/junit/runners/model/FrameworkMethod;Lorg/junit/runner/notification/RunNotifier;)V+31 > j > org.junit.runners.BlockJUnit4ClassRunner.runChild(Ljava/lang/Object;Lorg/junit/runner/notification/RunNotifier;)V+6 > j org.junit.runners.ParentRunner$3.run()V+12 > j org.junit.runners.ParentRunner$1.schedule(Ljava/lang/Runnable;)V+1 > j > org.junit.runners.ParentRunner.runChildren(Lorg/junit/runner/notification/RunNotifier;)V+40 > j > org.junit.runners.ParentRunner.access$000(Lorg/junit/runners/ParentRunner;Lorg/junit/runner/notification/RunNotifier;)V+2 > j org.junit.runners.ParentRunner$2.evaluate()V+8 > j > org.junit.runners.ParentRunner.run(Lorg/junit/runner/notification/RunNotifier;)V+20 > j > org.junit.runners.Suite.runChild(Lorg/junit/runner/Runner;Lorg/junit/runner/notification/RunNotifier;)V+2 > j > org.junit.runners.Suite.runChild(Ljava/lang/Object;Lorg/junit/runner/notification/RunNotifier;)V+6 > j org.junit.runners.ParentRunner$3.run()V+12 > j org.junit.runners.ParentRunner$1.schedule(Ljava/lang/Runnable;)V+1 > j > org.junit.runners.ParentRunner.runChildren(Lorg/junit/runner/notification/RunNotifier;)V+40 > j > org.junit.runners.ParentRunner.access$000(Lorg/junit/runners/ParentRunner;Lorg/junit/runner/notification/RunNotifier;)V+2 > j org.junit.runners.ParentRunner$2.evaluate()V+8 > j > org.junit.runners.ParentRunner.run(Lorg/junit/runner/notification/RunNotifier;)V+20 > j > org.junit.runner.JUnitCore.run(Lorg/junit/runner/Runner;)Lorg/junit/runner/Result;+37 > j > org.junit.runner.JUnitCore.run(Lorg/junit/runner/Request;)Lorg/junit/runner/Result;+5 > j > org.junit.runner.JUnitCore.run([Ljava/lang/Class;)Lorg/junit/runner/Result;+8 > j > org.junit.runner.JUnitCore.runMain(Lorg/junit/internal/JUnitSystem;[Ljava/lang/String;)Lorg/junit/runner/Result;+188 > j > org.junit.runner.JUnitCore.runMainAndExit(Lorg/junit/internal/JUnitSystem;[Ljava/lang/String;)V+9 > j org.junit.runner.JUnitCore.main([Ljava/lang/String;)V+8 > v ~StubRoutines::call_stub > > --------------- P R O C E S S --------------- > > Java Threads: ( => current thread ) > 0x0052d000 JavaThread "Low Memory Detector" daemon [_thread_blocked, > id=2912, stack(0x049f0000,0x04a40000)] > 0x0052b800 JavaThread "CompilerThread0" daemon [_thread_blocked, > id=4164, stack(0x04960000,0x049b0000)] > 0x0052a800 JavaThread "Attach Listener" daemon [_thread_blocked, > id=3432, stack(0x048d0000,0x04920000)] > 0x00527000 JavaThread "Signal Dispatcher" daemon [_thread_blocked, > id=4628, stack(0x04840000,0x04890000)] > 0x00520800 JavaThread "Finalizer" daemon [_thread_blocked, id=5032, > stack(0x047b0000,0x04800000)] > 0x0051f000 JavaThread "Reference Handler" daemon [_thread_blocked, > id=2012, stack(0x04720000,0x04770000)] > =>0x004fec00 JavaThread "main" [_thread_in_vm, id=4028, > stack(0x00430000,0x00480000)] > > Other Threads: > 0x0051e000 VMThread [stack: 0x04690000,0x046e0000] [id=4860] > 0x0052e800 WatcherThread [stack: 0x04a80000,0x04ad0000] [id=3552] > > VM state:not at safepoint (normal execution) > > VM Mutex/Monitor currently owned by a thread: None > > Heap > def new generation total 4992K, used 89K [0x24170000, 0x246d0000, > 0x296c0000) > eden space 4480K, 2% used [0x24170000, 0x241866c0, 0x245d0000) > from space 512K, 0% used [0x245d0000, 0x245d0000, 0x24650000) > to space 512K, 0% used [0x24650000, 0x24650000, 0x246d0000) > tenured generation total 27336K, used 16554K [0x296c0000, > 0x2b172000, 0x34170000) > the space 27336K, 60% used [0x296c0000, 0x2a6ea990, 0x2a6eaa00, > 0x2b172000) > compacting perm gen total 12288K, used 503K [0x34170000, 0x34d70000, > 0x38170000) > the space 12288K, 4% used [0x34170000, 0x341ede80, 0x341ee000, > 0x34d70000) > ro space 10240K, 51% used [0x38170000, 0x3869bd20, 0x3869be00, > 0x38b70000) > rw space 12288K, 54% used [0x38b70000, 0x39207d58, 0x39207e00, > 0x39770000) > > Dynamic libraries: > 0x00400000 - 0x00424000 c:\Program Files (x86)\Java\jre6\bin\java.exe > 0x774b0000 - 0x77630000 C:\Windows\SysWOW64\ntdll.dll > 0x761a0000 - 0x762a0000 C:\Windows\syswow64\kernel32.dll > 0x758b0000 - 0x758f6000 C:\Windows\syswow64\KERNELBASE.dll > 0x75710000 - 0x757b0000 C:\Windows\syswow64\ADVAPI32.dll > 0x754f0000 - 0x7559c000 C:\Windows\syswow64\msvcrt.dll > 0x76080000 - 0x76099000 C:\Windows\SysWOW64\sechost.dll > 0x753f0000 - 0x754e0000 C:\Windows\syswow64\RPCRT4.dll > 0x75020000 - 0x75080000 C:\Windows\syswow64\SspiCli.dll > 0x75010000 - 0x7501c000 C:\Windows\syswow64\CRYPTBASE.dll > 0x7c340000 - 0x7c396000 c:\Program Files (x86)\Java\jre6\bin\msvcr71.dll > 0x6d7f0000 - 0x6da9c000 c:\Program Files (x86)\Java\jre6\bin\client\jvm.dll > 0x75f80000 - 0x76080000 C:\Windows\syswow64\USER32.dll > 0x75ee0000 - 0x75f70000 C:\Windows\syswow64\GDI32.dll > 0x754e0000 - 0x754ea000 C:\Windows\syswow64\LPK.dll > 0x75d70000 - 0x75e0d000 C:\Windows\syswow64\USP10.dll > 0x6f380000 - 0x6f3b2000 C:\Windows\system32\WINMM.dll > 0x75d10000 - 0x75d70000 C:\Windows\system32\IMM32.DLL > 0x75a50000 - 0x75b1c000 C:\Windows\syswow64\MSCTF.dll > 0x74050000 - 0x7409b000 C:\Windows\system32\apphelp.dll > 0x6d7a0000 - 0x6d7ac000 c:\Program Files (x86)\Java\jre6\bin\verify.dll > 0x6d320000 - 0x6d33f000 c:\Program Files (x86)\Java\jre6\bin\java.dll > 0x6d280000 - 0x6d288000 c:\Program Files (x86)\Java\jre6\bin\hpi.dll > 0x77480000 - 0x77485000 C:\Windows\syswow64\PSAPI.DLL > 0x6d7e0000 - 0x6d7ef000 c:\Program Files (x86)\Java\jre6\bin\zip.dll > 0x10000000 - 0x10011000 C:\Windows\System32\jep.dll > 0x1e000000 - 0x1e208000 C:\Windows\system32\python25.dll > 0x76460000 - 0x770a9000 C:\Windows\syswow64\SHELL32.dll > 0x75630000 - 0x75687000 C:\Windows\syswow64\SHLWAPI.dll > > VM Arguments: > java_command: org.junit.runner.JUnitCore JepTest > Launcher Type: SUN_STANDARD > > Environment Variables: > JAVA_HOME="c:\Program Files\Java\jdk1.6.0_23" > PATH=C:\python27\;C:\python27\scripts;C:\Program Files (x86)\Microsoft > Visual Studio 9.0\Common7\IDE;C:\Program Files (x86)\Microsoft Visual > Studio 9.0\VC\BIN\x86_amd64;C:\Program Files (x86)\Microsoft Visual > Studio 9.0\VC\BIN;C:\Program Files (x86)\Microsoft Visual Studio > 9.0\Common7\Tools;C:\Program Files (x86)\Microsoft Visual Studio > 9.0\Common7\Tools\bin;Framework32\;Framework32\\Microsoft .NET Framework > 3.5 (Pre-Release Version);Framework32\v2.0.50727;C:\Program Files > (x86)\Microsoft Visual Studio 9.0\VC\VCPackages;C:\Program > Files\Microsoft > SDKs\Windows\v6.1\bin;C:\python27\;C:\python27\scripts;C:\users\wright\software;C:\Tcl\bin;C:\Program > Files\NVIDIA GPU Computing > Toolkit\CUDA\v3.2\bin\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program > Files\Intel\DMIX;C:\Program Files (x86)\NTRU Cryptosystems\NTRU TCG > Software Stack\bin\;C:\Program Files\NTRU Cryptosystems\NTRU TCG > Software Stack\bin\;C:\Program Files\Wave Systems Corp\Gemalto\Access > Client\v5\;C:\Program Files (x86)\Common Files\Roxio > Shared\DLLShared\;C:\Program Files (x86)\Common Files\Roxio > Shared\10.0\DLLShared\;C:\ProgramData\NVIDIA Corporation\NVIDIA GPU > Computing SDK 3.2\C\common\bin;C:\Program > Files\SlikSvn\bin\;C:\Windows\System32 > USERNAME=WRIGHT > OS=Windows_NT > PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 37 Stepping 5, GenuineIntel > > > > --------------- S Y S T E M --------------- > > OS: Windows 7 Build 7600 > > CPU:total 4 (2 cores per cpu, 2 threads per core) family 6 model 37 > stepping 5, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3, sse4.1, > sse4.2, popcnt, ht > > Memory: 4k page, physical 4053388k(634312k free), swap 8104876k(4291604k > free) > > vm_info: Java HotSpot(TM) Client VM (19.0-b09) for windows-x86 JRE > (1.6.0_23-b05), built on Nov 12 2010 15:00:43 by "java_re" with MS VC++ > 7.1 (VS2003) > > time: Tue Jan 18 11:05:51 2011 > elapsed time: 6 seconds > > > > ------------------------------------------------------------------------------ > Protect Your Site and Customers from Malware Attacks > Learn about various malware tactics and how to avoid them. Understand > malware threats, the impact they can have on your business, and how you > can protect your company and customers by using code signing. > http://p.sf.net/sfu/oracle-sfdevnl > _______________________________________________ > Jepp-users mailing list > Jep...@li... > https://lists.sourceforge.net/lists/listinfo/jepp-users > |