what type of geometry is tihs? and how many vertices does it have?

when such issues occur I normally take the WKT string to the JTS test suit.
That clears up lots of things... if the geometry is huge.. I suggest
breaking it up..do the buffer operation and then union the results back..

regards,
Imran


On Fri, May 9, 2014 at 9:22 PM, Martin Davis <[email protected]> wrote:

> There's no known changes in memory handling in JTS between JDK 1.6 and
> 1.7.
>
> Not sure if 1.13 will help.  I don't think there were any significant
> changes to the Buffer code in that version.
>
> Are you sure this isn't a data issue?  What happens when you run the exact
> same geometry in both JDKs?
>
>
> On Thu, May 8, 2014 at 12:23 PM, Robert Justice <[email protected]>wrote:
>
>> One of our customers is calling JTS libraries out of a Hive UDF and
>> noticed a pretty dramatic jump of heap memory usage between JDK 1.6 and JDK
>> 1.7.   We bumped up heap and added some CMS GC options to help, but were
>> curious if anyone else had experienced any problems.
>> I noticed 1.13 is out, does that help with heap usage?
>>
>> Exception
>> --------------
>> Caused by: java.lang.OutOfMemoryError: GC overhead limit exceeded
>> at
>> com.vividsolutions.jts.geomgraph.EdgeEndStar.<init>(EdgeEndStar.java:58)
>> at
>> com.vividsolutions.jts.geomgraph.DirectedEdgeStar.<init>(DirectedEdgeStar.java:60)
>>
>> at
>> com.vividsolutions.jts.operation.overlay.OverlayNodeFactory.createNode(OverlayNodeFactory.java:54)
>>
>> at com.vividsolutions.jts.geomgraph.NodeMap.addNode(NodeMap.java:76)
>> at com.vividsolutions.jts.geomgraph.NodeMap.add(NodeMap.java:101)
>> at com.vividsolutions.jts.geomgraph.PlanarGraph.add(PlanarGraph.java:107)
>> at
>> com.vividsolutions.jts.geomgraph.PlanarGraph.addEdges(PlanarGraph.java:137)
>> at
>> com.vividsolutions.jts.operation.buffer.BufferBuilder.buffer(BufferBuilder.java:152)
>>
>> at
>> com.vividsolutions.jts.operation.buffer.BufferOp.bufferFixedPrecision(BufferOp.java:341)
>>
>> at
>> com.vividsolutions.jts.operation.buffer.BufferOp.bufferReducedPrecision(BufferOp.java:329)
>>
>> at
>> com.vividsolutions.jts.operation.buffer.BufferOp.bufferReducedPrecision(BufferOp.java:293)
>>
>> at
>> com.vividsolutions.jts.operation.buffer.BufferOp.computeGeometry(BufferOp.java:285)
>>
>> at
>> com.vividsolutions.jts.operation.buffer.BufferOp.getResultGeometry(BufferOp.java:272)
>>
>> at
>> com.vividsolutions.jts.operation.buffer.BufferOp.bufferOp(BufferOp.java:148)
>>
>> at com.vividsolutions.jts.geom.Geometry.buffer(Geometry.java:1157)
>>
>> Exception
>> --------------
>> Caused by: java.lang.OutOfMemoryError: Java heap space
>> at
>> com.vividsolutions.jts.geomgraph.EdgeIntersectionList.<init>(EdgeIntersectionList.java:49)
>>
>> at com.vividsolutions.jts.geomgraph.Edge.<init>(Edge.java:69)
>> at
>> com.vividsolutions.jts.operation.buffer.BufferBuilder.computeNodedEdges(BufferBuilder.java:196)
>>
>> at
>> com.vividsolutions.jts.operation.buffer.BufferBuilder.buffer(BufferBuilder.java:150)
>>
>> at
>> com.vividsolutions.jts.operation.buffer.BufferOp.bufferFixedPrecision(BufferOp.java:341)
>>
>> at
>> com.vividsolutions.jts.operation.buffer.BufferOp.bufferReducedPrecision(BufferOp.java:329)
>>
>> at
>> com.vividsolutions.jts.operation.buffer.BufferOp.bufferReducedPrecision(BufferOp.java:293)
>>
>> at
>> com.vividsolutions.jts.operation.buffer.BufferOp.computeGeometry(BufferOp.java:285)
>>
>> at
>> com.vividsolutions.jts.operation.buffer.BufferOp.getResultGeometry(BufferOp.java:272)
>>
>> at
>> com.vividsolutions.jts.operation.buffer.BufferOp.bufferOp(BufferOp.java:148)
>>
>> at com.vividsolutions.jts.geom.Geometry.buffer(Geometry.java:1157)
>> at
>>
>> --
>>  Thanks,
>> ---
>> Robert Justice
>>
>>
>> ------------------------------------------------------------------------------
>> Is your legacy SCM system holding you back? Join Perforce May 7 to find
>> out:
>> &#149; 3 signs your SCM is hindering your productivity
>> &#149; Requirements for releasing software faster
>> &#149; Expert tips and advice for migrating your SCM now
>> http://p.sf.net/sfu/perforce
>> _______________________________________________
>> Jts-topo-suite-user mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/jts-topo-suite-user
>>
>>
>
>
> ------------------------------------------------------------------------------
> Is your legacy SCM system holding you back? Join Perforce May 7 to find
> out:
> &#149; 3 signs your SCM is hindering your productivity
> &#149; Requirements for releasing software faster
> &#149; Expert tips and advice for migrating your SCM now
> http://p.sf.net/sfu/perforce
> _______________________________________________
> Jts-topo-suite-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/jts-topo-suite-user
>
>


-- 
I.R
------------------------------------------------------------------------------
Is your legacy SCM system holding you back? Join Perforce May 7 to find out:
&#149; 3 signs your SCM is hindering your productivity
&#149; Requirements for releasing software faster
&#149; Expert tips and advice for migrating your SCM now
http://p.sf.net/sfu/perforce
_______________________________________________
Jts-topo-suite-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jts-topo-suite-user

Reply via email to