Daniel,

I haven't worked with TomCat, but if it doing something like creating a process/thread/whatever for the mapscript request but treating it like a reusable thread, then it might not be shutting it down in which case files are not getting closed. The user might need to make sure TomCat is treating this like a cgi-bin process and not a mod_* type of process.

-Steve W

Daniel Morissette wrote:
aseem wrote:
Thanks Daniel. Thanks for the reply. Yes, We are using MapScript.

PHP MapScript?


I have
checked the open files by executing lsof command. I found that most of the files are related to FGS. Following is the part of the output we got after
running lsof command.

You seem to have two processes with each about 30-40 files open, mostly shared libraries. That's nothing to worry about or to take a system down.

Perhaps you need to re-check after 20-30 minutes of operation, when the web server locks up (this is what happens, right?). What we're looking for is an indication of a leak of file handles, i.e. the same file opened hundreds of times... then we'll need to find out why that file is never closed.

Which error message did you get exactly that led you to think that there was a problem of too many files opened? Does the same problem happen if you connect directly to the instance of Apache that comes with FGS instead of going through the Tomcat server?

Daniel

_______________________________________________
mapserver-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to