Welcome Guest ( Log In | Register )



 
Reply to this topicStart new topic
> Java Memory Leak?
sparkx
post Jul 7 2008, 12:13 AM
Post #1


Sparkx
Group Icon

Group: [HOSTED]
Posts: 339
Joined: 11-October 06
From: Dana Point, CA, USA
Member No.: 16,496



 I have been using the picking tool with setShapeCylinderSegment (this returns infinit results but is capped). It works just fine for me (in terms of what it does) and it wasn't until just recently I noticed that it has been causing my program to spike the memory. I have looked through Google to see the problem and apparently it is caused a memory leak. I have tried to solve it by simply setting all the variables to null after they are used but this doesn't help. Is there something I can do to or a free software I can use to find the exact variable that is causing this problem and a way to fix it. Here is the exception I received:
CODE
Exception in thread "AWT-EventQueue-0" java.lang.OutOfMemoryError: Java heap space
  at com.sun.j3d.utils.picking.PickResult.intersect(Unknown Source)
  at com.sun.j3d.utils.picking.PickResult.generateIntersections(Unknown Source)
  at com.sun.j3d.utils.picking.PickResult.numIntersections(Unknown Source)
  at com.sun.j3d.utils.picking.PickTool.pickGeomAllSortedIntersect(Unknown Source)
  at com.sun.j3d.utils.picking.PickTool.pickGeomClosestIntersect(Unknown Source)
  at com.sun.j3d.utils.picking.PickTool.pickClosest(Unknown Source)
  at KeyNavigatorApp.getLandHeight(KeyNavigatorApp.java:613)
  at KeyNavigatorApp.UpdateKeyPressed(KeyNavigatorApp.java:1243)
  at KeyNavigatorApp$6.actionPerformed(KeyNavigatorApp.java:1117)
  at javax.swing.Timer.fireActionPerformed(Timer.java:271)
  at javax.swing.Timer$DoPostEvent.run(Timer.java:201)
  at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
  at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
  at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
  at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
  at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
  at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
  at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
  at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
Thanks in advanced,
Sparkx


Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. java.lang.NullPointException(4)
  2. Java Unlimited(14)
  3. Array Sorting(20)
  4. What Are The Advantages Of Java Vs C++?(15)
  5. Need Help: Find Lowest Character Using Java(6)
  6. Download Java Ebooks(13)
  7. Video Streaming In Web Browser Through Java Or Jsp(1)
  8. Looking For A Java IDE(24)
  9. Java App To Web App(12)
  10. On Why Java Is 'c'ooler!(10)
  11. How To Configure/intergrate Jboss 4 With Java?(1)
  12. Snake In Java(2)
  13. Other Sound Format Support(3)
  14. Java Phone Book(2)
  15. How To Create Exe File In Java?(12)
  1. How Do I Test A Java Aplication(11)
  2. Mozilla And Java!(2)
  3. Need To Modify Xml Attribute Using Java(4)
  4. Bluetooth And Java(5)
  5. Java Sdk Vs. Java Jdk?(2)
  6. Graphcal User Interfaces In Java(4)
  7. Java Db Help Pls(2)
  8. Loading 3d Models In Java?(2)
  9. Java Applet Loading Error(5)
  10. Setting Up Java Correctly(8)
  11. Java Java.security.accesscontrolexception(6)
  12. Simple Java Question(1)
  13. Java And Sql: Data Mismatch(6)


 



- Lo-Fi Version Time is now: 21st August 2008 - 09:20 PM