[Geoserver-devel] [jira] (GEOS-6921) File Descriptor Leak in WCS parameter call

Travis Brundage created an issue

GeoServer / BugGEOS-6921

File Descriptor Leak in WCS parameter call

Issue Type:

BugBug

Affects Versions:

2.6.2

Assignee:

Andrea Aime

Attachments:

file_leak.xml, fnmoc-wps-file-desc-leak-0.48.0.jar, test_image.tif.gz

Components:

WCS

Created:

27/Feb/15 7:00 PM

Priority:

MinorMinor

Reporter:

Travis Brundage

There is a file descriptor leak which occurs in a failed WCS parameter call through WPS. This is confirmed to affect versions 2.6.2 and below.

Steps to reproduce:

  1. Setup geoserver WAR in tomcat (or other container)
  2. Install WPS (add WPS jars to WEB-INF/lib)
  3. Additionally add the fnmoc-wps-file-desc-leak-0.48.0.jar
  4. Launch tomcat
  5. Create a workspace called “test” in geoserver
  6. Create a new GeoTiff store called “test_image”
  7. Upload test_image.tif and make sure it is called “test_image”
  8. Use file_leak.xml and run the following command: curl -XPOST -H ‘Content-Type:text/xml’ -d @file_leak.xmlhttp://localhost:8080/geoserver/wps
    Use whatever is appropriate for your setup. You should get a NullPointerException error.
  9. Get the pid of the running tomcat (or other container) process
  10. lsof -p [pid of tomcat process] | grep tif

You should see the test_image.tif file still open after the command’s failure. This leads to many leaked processes over time. Note that you may need to adjust the permissions of these files in order to upload/use them correctly.

Add Comment

Add Comment

This message was sent by Atlassian JIRA (v6.1.6#6162-sha1:7af547c)

Atlassian logo