Login  Register

java3d memory leak with threads

Posted by henry on Dec 14, 2013; 12:42pm
URL: https://forum.jogamp.org/java3d-memory-leak-with-threads-tp4030899.html

Hi There,
  I am using McIDAS,  a large java program for displaying  weather/climate data.
  For 3d/2d rendering it uses the java3d API -  ( the two jars j3dcore and j3dutils.jar dated 2008)
 The program can run in two modes interactive and script mode.
  In script mode instructions  are taken from  python script and the main window is NOT displayed.
 ( nb this is NOT in headless mode)
 
 On our server the program runs fine in interactive mode  - but in script mode  when doing a batch job ; the program opens loads of threads (110-150)  and uses lots of heap memory ( 4GB)  and then eventually grinds to  halt .
( see threads at end of post)
On my local machine the batch jobs runs fine,


The sever specification is
server:
quad core Xeon running CentOS 6.4

Graphics card:
GeForce GT 610 (rev a1) - driver nvidia version 319.17

java- runtime:
 ( comes bundled with the McIDAS sofwtare)
java version "1.6.0_31"
Java(TM) SE Runtime Environment (build 1.6.0_31-b04)
Java HotSpot(TM) 64-Bit Server VM (build 20.6-b01, mixed mode)



Any help or insight would be very greatly appreciated
..Henry

 Threads:

"J3D-BehaviorScheduler-1" prio=10 tid=0x00007fbe141d2000 nid=0xe99 in Object.wait() [0x00007fbe5055c000]
"J3D-BehaviorScheduler-2" prio=10 tid=0x00007fbe141d5000 nid=0x1095 in Object.wait() [0x00007fbe031f0000]
"J3D-BehaviorScheduler-3" prio=10 tid=0x00007fbe141be000 nid=0x1494 in Object.wait() [0x00007fbdff068000]
"J3D-BehaviorScheduler-4" prio=10 tid=0x00007fbe14040000 nid=0x190f in Object.wait() [0x00007fbdfdd2a000]
"J3D-BehaviorScheduler-5" prio=10 tid=0x00007fbe141a3000 nid=0x1c0a in Object.wait() [0x00007fbdfd225000]
"J3D-BehaviorStructureUpdateThread-1" prio=10 tid=0x00007fbe141a8800 nid=0xe94 in Object.wait() [0x00007fbe03cfb000]
"J3D-BehaviorStructureUpdateThread-2" prio=10 tid=0x00007fbe14187800 nid=0x1090 in Object.wait() [0x00007fbe5035a000]
"J3D-BehaviorStructureUpdateThread-3" prio=10 tid=0x00007fbe141de000 nid=0x148f in Object.wait() [0x00007fbdfec35000]
"J3D-BehaviorStructureUpdateThread-4" prio=10 tid=0x00007fbe1403c000 nid=0x190a in Object.wait() [0x00007fbdfe32c000]
"J3D-BehaviorStructureUpdateThread-5" prio=10 tid=0x00007fbe1419d800 nid=0x1c05 in Object.wait() [0x00007fbdfe029000]
"J3D-GeometryStructureUpdateThread-1" prio=10 tid=0x00007fbe141b0800 nid=0xe95 in Object.wait() [0x00007fbe03bfa000]
"J3D-GeometryStructureUpdateThread-2" prio=10 tid=0x00007fbe141c2000 nid=0x1091 in Object.wait() [0x00007fbe02ceb000]
"J3D-GeometryStructureUpdateThread-3" prio=10 tid=0x00007fbe141e6000 nid=0x1490 in Object.wait() [0x00007fbdfe730000]
"J3D-GeometryStructureUpdateThread-4" prio=10 tid=0x00007fbe1403c800 nid=0x190b in Object.wait() [0x00007fbdfdb28000]
"J3D-GeometryStructureUpdateThread-5" prio=10 tid=0x00007fbe1419e000 nid=0x1c06 in Object.wait() [0x00007fbdfcf22000]
"J3D-InputDeviceScheduler-1" prio=10 tid=0x00007fbe141b2800 nid=0xe9c in Object.wait() [0x00007fbe037f6000]
"J3D-InputDeviceScheduler-2" prio=10 tid=0x00007fbe141ad000 nid=0x1098 in Object.wait() [0x00007fbe032f1000]
"J3D-InputDeviceScheduler-3" prio=10 tid=0x00007fbe1404d000 nid=0x1497 in Object.wait() [0x00007fbdff268000]
"J3D-InputDeviceScheduler-4" prio=10 tid=0x00007fbe14044000 nid=0x1912 in Object.wait() [0x00007fbe50158000]
"J3D-InputDeviceScheduler-5" prio=10 tid=0x00007fbe1400a800 nid=0x1c0d in Object.wait() [0x00007fbdfe62f000]
"J3D-MasterControl-1" prio=10 tid=0x00007fbe2006d000 nid=0xe90 in Object.wait() [0x00007fbe02bea000]
"J3D-NotificationThread" prio=10 tid=0x00007fbe20061800 nid=0xe8f in Object.wait() [0x00007fbe035f4000]
"J3D-Renderer-1" prio=10 tid=0x00007fbe141ce800 nid=0xe91 in Object.wait() [0x00007fbe03efd000]
"J3D-RenderingAttributesStructureUpdateThread" prio=10 tid=0x00007fbe20055000 nid=0xe8d in Object.wait() [0x00007fbe50a61000]
"J3D-RenderingEnvironmentStructureUpdateThread-1" prio=10 tid=0x00007fbe141dc800 nid=0xe97 in Object.wait() [0x00007fbe5045b000]
"J3D-RenderingEnvironmentStructureUpdateThread-2" prio=10 tid=0x00007fbe141c8800 nid=0x1093 in Object.wait() [0x00007fbe51074000]
"J3D-RenderingEnvironmentStructureUpdateThread-3" prio=10 tid=0x00007fbe1419a800 nid=0x1492 in Object.wait() [0x00007fbdfe831000]
"J3D-RenderingEnvironmentStructureUpdateThread-4" prio=10 tid=0x00007fbe1403e000 nid=0x190d in Object.wait() [0x00007fbdfdc29000]
"J3D-RenderingEnvironmentStructureUpdateThread-5" prio=10 tid=0x00007fbe141a0800 nid=0x1c08 in Object.wait() [0x00007fbdfd124000]
"J3D-RenderStructureUpdateThread-1" prio=10 tid=0x00007fbe141d3800 nid=0xe9a in Object.wait() [0x00007fbe50259000]
"J3D-RenderStructureUpdateThread-2" prio=10 tid=0x00007fbe141c6800 nid=0x1096 in Object.wait() [0x00007fbe51175000]
"J3D-RenderStructureUpdateThread-3" prio=10 tid=0x00007fbe1404b000 nid=0x1495 in Object.wait() [0x00007fbe5085f000]
"J3D-RenderStructureUpdateThread-4" prio=10 tid=0x00007fbe14041000 nid=0x1910 in Object.wait() [0x00007fbdfde2b000]
"J3D-RenderStructureUpdateThread-5" prio=10 tid=0x00007fbe141a4800 nid=0x1c0b in Object.wait() [0x00007fbdfd427000]
"J3D-SoundSchedulerUpdateThread-1" prio=10 tid=0x00007fbe14198800 nid=0xe9b in Object.wait() [0x00007fbe030ef000]
"J3D-SoundSchedulerUpdateThread-2" prio=10 tid=0x00007fbe141d7000 nid=0x1097 in Object.wait() [0x00007fbe02fee000]
"J3D-SoundSchedulerUpdateThread-3" prio=10 tid=0x00007fbe1404b800 nid=0x1496 in Object.wait() [0x00007fbdfea33000]
"J3D-SoundSchedulerUpdateThread-4" prio=10 tid=0x00007fbe14042800 nid=0x1911 in Object.wait() [0x00007fbdfeb34000]
"J3D-SoundSchedulerUpdateThread-5" prio=10 tid=0x00007fbe141a6000 nid=0x1c0c in Object.wait() [0x00007fbdfe52e000]
"J3D-SoundStructureUpdateThread-1" prio=10 tid=0x00007fbe141d0800 nid=0xe96 in Object.wait() [0x00007fbe036f5000]
"J3D-SoundStructureUpdateThread-2" prio=10 tid=0x00007fbe141ca800 nid=0x1092 in Object.wait() [0x00007fbe5065d000]
"J3D-SoundStructureUpdateThread-3" prio=10 tid=0x00007fbe1419a000 nid=0x1491 in Object.wait() [0x00007fbdfe932000]
"J3D-SoundStructureUpdateThread-4" prio=10 tid=0x00007fbe1403d800 nid=0x190c in Object.wait() [0x00007fbdfee35000]
"J3D-SoundStructureUpdateThread-5" prio=10 tid=0x00007fbe1419f000 nid=0x1c07 in Object.wait() [0x00007fbdfe22b000]
"J3D-TimerThread" prio=10 tid=0x00007fbe20079000 nid=0xe8e in Object.wait() [0x00007fbe02ae9000]