Too many files open - wink (osgi)

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Too many files open - wink (osgi)

sajan
I am using the OSGi version of wink  and observe that every time a GET or POST is made a new "Pipe" is created (lsof -p pid shows this) and after about 300 calls, the java process gets killed complaining "too many files open". Any one observed this before? If so any fixes? (Using wink server 1.4)  

Here is a sample code, which returns a JSON object.

    @GET
    @Path("test")
    @Produces(MediaType.APPLICATION_JSON)
    public JSONObject gettestettings() throws JSONException {
        JSONObject p= new JSONObject();
        p.put("test1", "Some value");
        p.put("current Time", new Date().toString());
        return p;
    }