Welcome Guest ( Log In | Register )




                Web Hosting Guide

 
Reply to this topicNew Topic
Java Memory Leak?
sparkx
post Jul 7 2008, 12:13 AM
Post #1


Sparkx
Group Icon

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


 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
fmatheis
post Nov 11 2008, 10:52 PM
Post #2


Newbie [ Level 1 ]
Group Icon

Group: Members
Posts: 1
Joined: 11-November 08
Member No.: 34,874


Maybe you don't have a memory leak but a memory peak.

Try starting the JVM with more memory by using -Xmx parameter at the startup. This way you might be able to avoid the "out of memory" error.
Go to the top of the page
 
+Quote Post
xboxrulz
post Nov 12 2008, 12:06 AM
Post #3


Colonel Panic
Group Icon

Group: [MODERATOR]
Posts: 3,050
Joined: 25-March 05
From: Toronto, Ontario, Canada
Member No.: 3,233
myCENTs:62.45


How much memory is your system running on?

xboxrulz
Go to the top of the page
 
+Quote Post

Reply to this topicNew Topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Collapse

> Similar Topics

    Topic Title Replies Topic Starter Views Last Action
No New Posts 11 divinity 1,544 4th November 2009 - 12:35 AM
Last post by: HannahI
No New Posts   7 amit nigam 1,197 4th November 2009 - 12:33 AM
Last post by: HannahI
No New Posts   5 sparkx 684 4th November 2009 - 12:29 AM
Last post by: HannahI
No New Posts   6 FearfullyMade 2,863 28th October 2009 - 08:14 PM
Last post by: HannahI
No New Posts   17 vicky99 6,267 17th October 2009 - 11:51 AM
Last post by: surfermac
No New Posts   5 vicky99 2,115 6th October 2009 - 07:02 AM
Last post by: iG-Daniel
No new   29 jc804 8,006 29th September 2009 - 07:56 AM
Last post by: iG-nudge
No New Posts   0 starscream 87 24th September 2009 - 12:14 PM
Last post by: starscream
No New Posts   7 suicide 5,069 5th September 2009 - 02:11 PM
Last post by: iG-sam
No New Posts   1 surfermac 241 23rd August 2009 - 09:48 PM
Last post by: yordan
No New Posts   7 Kart 2,623 21st August 2009 - 07:11 PM
Last post by: iG-anon_anon
No New Posts 2 soleimanian 3,772 16th July 2009 - 10:26 AM
Last post by: iG-Ryan Spooner
No New Posts   17 mahender 12,602 6th July 2009 - 11:43 AM
Last post by: ashish17
No new   26 Hercco 3,639 22nd May 2009 - 06:05 AM
Last post by: satwant007
No New Posts   2 sendto 4,408 18th April 2009 - 02:12 PM
Last post by: iGuest


Web Hosting Powered by ComputingHost.com.