Opened 11 years ago

Closed 11 years ago

#413 closed defect (worksforme)

Bug in SiteData

Reported by: mwoods@… Owned by:
Priority: major Milestone:
Component: commons Version: 1.2.3
Keywords: SiteData Cc:


Steps to reproduce: (PLEASE FILL IN) Min Lat = 32.5, Max Lat = 41.5, Min Lon = -124.5, Max Lon = -114.0, Grid Spacing = 0.005. Create Mosaic Map from USGS Bay Area Velocity Model 8.3.0 (depth to Vs=1.0 km/sec)and SCEC CVM v4 Basin Depth (depth to Vs=1.0 km/sec)

Other info: (PLEASE FILL IN)Out of Memory in Java heap space, no doubt caused by specifying a too-fine grid spacing of 0.005 (which I know is overly fine for the Bay Area model, but valid for the SCEC model). The specified mosaic map works fine when specifying a grid spacing of 0.01 degrees.

Application: SiteData?
Version: 1.2.3
Bulid Type: Production
Java Version: 1.7.0_07 (Oracle Corporation)
Operating System: Windows 7 (arch: amd64, version: 6.1)


java.lang.OutOfMemoryError: Java heap space
	at java.util.Arrays.copyOf(Unknown Source)
	at Source)
	at Source)
	at Source)
	at Source)
	at$BlockDataOutputStream.drain(Unknown Source)
	at$BlockDataOutputStream.setBlockDataMode(Unknown Source)
	at Source)
	at Source)
	at org.opensha.commons.mapping.gmt.GMT_MapGenerator.openServletConnection(
	at org.opensha.commons.mapping.gmt.GMT_MapGenerator.makeMapUsingServlet(
	at org.opensha.commons.mapping.gmt.GMT_MapGenerator.makeMapUsingServlet(
	at org.opensha.commons.mapping.gmt.gui.GMT_MapGuiBean.makeMap(
	at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
	at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
	at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
	at javax.swing.DefaultButtonModel.setPressed(Unknown Source)%

Change History (1)

comment:1 Changed 11 years ago by Kevin Milner

Resolution: worksforme
Status: newclosed

Thanks for the bug report. This does appear to be due to the fine grid spacing. I recommend that you just increase the grid spacing to 0.01 degrees as you probably won't be able to tell the difference when you are zoomed out that far. If you still wish to try to create such a high resolution map, then you can download the jar file directly here:

Then launch it on the command line by typing in the download directory:

java -Xmx4G SiteData?-1.2.3-8183-2011_09_26.jar

You can replace the "4G" with any other number which represents the heap size in gigabytes (the capital G is important). You may need to play with this number to find a size that works for your computer (you need to have that much free memory) and is big enough to handle a map this dense. I'm not sure how much space is needed, nor if it will be possible on your laptop. It will also probably take a very long time to create the map as well, so I really only recommend it if it is important. Another alternative to look at is the UCVM package:

Note: See TracTickets for help on using tickets.