Project

General

Profile

Bug #476

out of memory error

Added by Tammy Bravo over 10 years ago. Updated over 10 years ago.

Status:
Closed
Priority:
Normal
Start date:
03/18/2014
Due date:
% Done:

0%

Estimated time:
Resolution:
Fixed

Description

I just got the following error when I clicked ok after setting up a new DMC station in jamaseis on my Mac. I selected the station via the map interface (the station that Luciana mentioned U56A). I had previously selected the same station manually and it worked fine. After this error I had to exit and reenter jamaseis to get the main screen to display properly

It appears to be repeatable, as I just tried the same sequence after restarting jamaseis and got the following, with the log file as well this time:

Log file:

2014-03-18 01:04:56,015 INFO - Initializing jAmaseis version 1.00.1
2014-03-18 01:04:56,039 INFO - java version: "1.6.0_65" Java HotSpot(TM) 64-Bit Server VM (20.65-b04-462)
os: Mac OS X 10.6.8 (x86_64)
2014-03-18 01:04:56,258 INFO - (R-SSMD1) Attempting to connect to jAmaseis network
2014-03-18 01:04:56,276 INFO - (R-SSMD1) Attempting to connect to jamaseis.iris.edu:8080
2014-03-18 01:04:56,609 INFO - (DMCSL-TA_V54A_--_BHZ) Established connection
2014-03-18 01:04:56,704 INFO - SeedLink: edu.iris.epo.jamaseis.slclient.SeedLinkClient(1,Thread-7): rtserve.iris.washington.edu:80 S TA_V54A:--BHZ.D -t 2014,03,18,00,58,55
2014-03-18 01:05:05,747 INFO - Start-up Sequence Complete
2014-03-18 01:08:13,534 INFO - (DMCSL-TA_U56A_-
_BHZ) Established connection
2014-03-18 01:08:15,342 STDERR - Exception in thread "Thread-45"
2014-03-18 01:08:15,560 STDERR - java.lang.OutOfMemoryError: Java heap space
2014-03-18 01:08:15,561 STDERR - at edu.iris.epo.jamaseis.datamanager.SourceHourSegment.<init>(SourceHourSegment.java:145)
2014-03-18 01:08:15,562 STDERR - at edu.iris.epo.jamaseis.datamanager.JamaseisDataManager.getRange(JamaseisDataManager.java:371)
2014-03-18 01:08:15,563 STDERR - at edu.iris.epo.jamaseis.datamanager.JamaseisDataManager.getLastTimeStampRecorded(JamaseisDataManager.java:246)
2014-03-18 01:08:15,563 STDERR - at edu.iris.epo.jamaseis.streamview.DataSource.getLastTimeStamp(DataSource.java:224)
2014-03-18 01:08:15,564 STDERR - at edu.iris.epo.jamaseis.network.dmc.AbstractDmcClient.getNextStartTime(AbstractDmcClient.java:171)
2014-03-18 01:08:15,565 STDERR - at edu.iris.epo.jamaseis.network.dmc.DmcSeedLinkClient.run(DmcSeedLinkClient.java:107)
2014-03-18 01:08:15,566 STDERR - at edu.iris.epo.jamaseis.network.dmc.DmcConnection.run(DmcConnection.java:145)
2014-03-18 01:08:15,567 STDERR - at java.lang.Thread.run(Thread.java:695)

Uncaught Exception: java.lang.OutOfMemoryError

Java heap space

java.nio.HeapByteBuffer.<init>(HeapByteBuffer.java:39)
java.nio.ByteBuffer.allocate(ByteBuffer.java:312)
edu.iris.epo.jamaseis.sacfile.SacFile.loadData(SacFile.java:769)
edu.iris.epo.jamaseis.sacfile.SacFile.<init>(SacFile.java:302)
edu.iris.epo.jamaseis.sacfile.SacFile.openExistingFile(SacFile.java:196)
edu.iris.epo.jamaseis.sacfile.SacFile.openExistingFile(SacFile.java:175)
edu.iris.epo.jamaseis.datamanager.SourceHourSegment.openOrReplace(SourceHourSegment.java:561)
edu.iris.epo.jamaseis.datamanager.SourceHourSegment.<init>(SourceHourSegment.java:157)
edu.iris.epo.jamaseis.datamanager.JamaseisDataManager.getRange(JamaseisDataManager.java:371)
edu.iris.epo.jamaseis.datamanager.JamaseisDataManager.getLastTimeStampRecorded(JamaseisDataManager.java:246)
edu.iris.epo.jamaseis.streamview.DataSource.getLastTimeStamp(DataSource.java:224)
edu.iris.epo.jamaseis.UI.streamview.Helicorder.currentlyInThePresent(Helicorder.java:387)
edu.iris.epo.jamaseis.UI.streamview.Helicorder$1.run(Helicorder.java:1056)

java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
java.awt.EventQueue.dispatchEventImpl(EventQueue.java:715)
java.awt.EventQueue.access$400(EventQueue.java:82)
java.awt.EventQueue$2.run(EventQueue.java:676)
java.awt.EventQueue$2.run(EventQueue.java:674)
java.security.AccessController.doPrivileged(Native Method)
java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:86)
java.awt.EventQueue.dispatchEvent(EventQueue.java:685)
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)
java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:205)
java.awt.Dialog$1.run(Dialog.java:1049)
java.awt.Dialog$3.run(Dialog.java:1101)
java.security.AccessController.doPrivileged(Native Method)
java.awt.Dialog.show(Dialog.java:1099)
java.awt.Component.show(Component.java:1615)
java.awt.Component.setVisible(Component.java:1567)
java.awt.Window.setVisible(Window.java:846)
java.awt.Dialog.setVisible(Dialog.java:984)

{java.runtime.name=Java(TM) SE Runtime Environment
sun.boot.library.path=/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Libraries
java.vm.version=20.65-b04-462
awt.nativeDoubleBuffering=true
gopherProxySet=false
mrj.build=10M4609
java.vm.vendor=Apple Inc.
java.vendor.url=http://www.apple.com/
path.separator=:
java.vm.name=Java HotSpot(TM) 64-Bit Server VM
file.encoding.pkg=sun.io
user.country=US
sun.os.patch.level=unknown
lax.stdin.redirect=console
java.vm.specification.name=Java Virtual Machine Specification
user.dir=/Applications/jAmaSeis
java.runtime.version=1.6.0_65-b14-462-10M4609
java.awt.graphicsenv=apple.awt.CGraphicsEnvironment
lax.command.line.args=$CMD_LINE_ARGUMENTS$
java.endorsed.dirs=/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/endorsed
os.arch=x86_64
apple.awt.graphics.UseOpenGL=false
java.io.tmpdir=/var/folders/vQ/vQfV2EILHgGMSa84wRiZaE+++TQ/-Tmp-/
line.separator=

lax.root.install.dir=/Applications/jAmaSeis
java.vm.specification.vendor=Sun Microsystems Inc.
os.name=Mac OS X
sun.jnu.encoding=MacRoman
java.library.path=/Applications/jAmaSeis/jAmaseis.app/Contents/Resources/Java:/System/Library/PrivateFrameworks/JavaApplicationLauncher.framework/Resources:.:/Users/taber/Library/Java/Extensions:/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java
java.specification.name=Java Platform API Specification
java.class.version=50.0
sun.management.compiler=HotSpot 64-Bit Tiered Compilers
os.version=10.6.8
http.nonProxyHosts=local|*.local|169.254/16|*.169.254/16
user.home=/Users/taber
user.timezone=America/New_York
java.awt.printerjob=apple.awt.CPrinterJob
file.encoding=MacRoman
java.specification.version=1.6
java.class.path=lib/jogl.jar:lib/log4j-1.2.17.jar:lib/oregondsp-1.0.jar:lib/seedlink_lite_1.2.1.jar:lib/slf4j-log4j12-1.6.1.jar:lib/RXTXcomm.jar:lib/worldwindx.jar:lib/seedlink_lite_src_1.2.1.jar:lib/jetty-all.jar:lib/commons-net-2.0.jar:lib/jcip-annotations-1.0.jar:lib/commons-lang-2.6.jar:lib/javax.servlet-3.0.0.v201112011016-javadoc.jar:lib/swing-layout-1.0.3.jar:lib/gluegen-rt.jar:lib/javax.servlet-3.0.0.v201112011016-sources.jar:lib/IRIS-WS-2.0.4.jar:lib/slf4j-api-1.6.1.jar:lib/oscache-2.1-mod2.jar:lib/SLinkUtil.jar:lib/commons-daemon-1.0.9.jar:lib/unidataCommon-4.2.20.jar:lib/jetty-all-javadoc.jar:lib/javax.servlet-3.0.0.v201112011016.jar:lib/jetty-all-sources.jar:lib/worldwind.jar:lib/jcalendar-1.4.jar:lib/JavaSeedLite.jar:jAmaseis.jar:/Applications/jAmaSeis/jAmaseis.app/Contents/Resources/Java/lax.jar
user.name=taber
apple.awt.graphics.UseQuartz=false
java.vm.specification.version=1.0
java.home=/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
sun.arch.data.model=64
com.apple.mrj.application.growbox.intrudes=true
user.language=en
java.specification.vendor=Sun Microsystems Inc.
lax.stderr.redirect=/var/tmp/console.log
awt.toolkit=apple.awt.CToolkit
java.vm.info=mixed mode
java.version=1.6.0_65
java.ext.dirs=/Users/taber/Library/Java/Extensions:/Library/Java/Extensions:/System/Library/Java/Extensions:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/ext
lax.main.method=main
sun.boot.class.path=/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/jsfd.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/classes.jar:/System/Library/Frameworks/JavaVM.framework/Frameworks/JavaRuntimeSupport.framework/Resources/Java/JavaRuntimeSupport.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/ui.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/laf.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/sunrsasign.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/jsse.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/jce.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/charsets.jar:/System/Library/PrivateFrameworks/JavaApplicationLauncher.framework/Resources/LauncherSupport.jar
java.vendor=Apple Inc.
file.separator=/
lax.stdout.redirect=/var/tmp/console.log
java.vendor.url.bug=http://bugreport.apple.com/
sun.io.unicode.encoding=UnicodeLittle
sun.cpu.endian=little
mrj.version=1060.1.6.0_65-462
lax.version=14.0
lax.main.class=edu.iris.epo.jamaseis.UI.jAmaseis
socksNonProxyHosts=local|*.local|169.254/16|*.169.254/16
ftp.nonProxyHosts=local|*.local|169.254/16|*.169.254/16
sun.awt.exception.handler=apple.awt.CToolkit$EventQueueExceptionHandler
sun.cpu.isalist=}

History

#1 Updated by Tammy Bravo over 10 years ago

This was the initial contact that necessitated evaluation of this DMC station:

There have been about 5 earthquakes this month that have shown up properly on U56A when viewed on the USARRAY site viewer. However, on jAmaSeis they were just high level random noise, while other stations on jAmaseis were OK. Apparently the retransmission of U56A on jAmaseis is faulty.

#2 Updated by Kevin Frechette over 10 years ago

  • Assignee set to Kevin Frechette

This is a general memory leak when opening the "Map View". Every time it is opened it leaks memory. If you repeatedly open the "Map View" and nothing else it always runs out of memory. I looked into it and tried to release the memory from the World Wind globe created for the map view. It lessened the leak but it still runs of of memory. I will fix this by re-using the World Wind globe rather than creating a new one each time. This will fix the out of memory problem. However it will not refresh the stations each time the map view is displayed. This is a simple fix. If we need the stations refreshed it will take a lot and may not even be possible at all due to the World Wind globe.

#3 Updated by Kevin Frechette over 10 years ago

  • Assignee changed from Kevin Frechette to Tammy Bravo

The memory leak has been fixed. The other good news is that it is also a lot faster to bring up the map after the initial display. The bad news is we do not refresh the station list. Is this sufficient or do we need to spend a few days trying to get it to refresh the station list?

#4 Updated by Kevin Frechette over 10 years ago

  • Status changed from New to Feedback

#5 Updated by Kevin Frechette over 10 years ago

  • Resolution set to Fixed
  • Assignee changed from Tammy Bravo to Kevin Frechette
  • Status changed from Feedback to Resolved

I will close this issue. If we need to spend a few days trying to get it to refresh the station list then a new issue should be created.

#6 Updated by Kevin Frechette over 10 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF