IndexFile doesn't clean memory
------------------------------
Key: GEOT-1824
URL: http://jira.codehaus.org/browse/GEOT-1824
Project: GeoTools
Issue Type: Bug
Components: data shapefile
Affects Versions: 2.2.2
Environment: Windows Family O.S., Sun Java hotspot server virtual
machine with 1 GB of RAM assigned.
Reporter: Manuele Ventoruzzo
Assignee: Jesse Eichar
Priority: Critical
Attachments: IndexFile.java
The problem occurs doing a stress test with concurrent accesses to large
shapefiles.
In a Windows environment a process cannot use more than 2 GB of memory (neither
virtual memory). In this case the JVM starts increasing the virtual memory used
until it reaches the limit and the process is killed by the operating system.
Of course nothing will be written into a log file.
The bug is in close() method of IndexFile class (package
org.geotools.data.shapefile.shp). It cleans used virtual memory calling
NIOUtilities.clean() only if the channel used is still open (unlike all other
classes using the same utility in this plugin).
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel