Archived

This forum has been archived. Please start a new discussion on GitHub.

SysCall Exception encoutered !!

We are using an Ice PHP client to connect to our business logic in C++ . This PHP code is resident in an Apache server and the Ice Server is a C++ Ice service . On the client while accessing PHP pages, sometimes we get an error -

"Fatal error: Uncaught Ice_UnknownLocalException Network.cpp:933: Ice::SyscallException: syscall exception: Too many open files" .

We are using Ice-3.2.1 on Red Hat Linux - Linux version 2.6.18-53.el5 (brewbuilder@hs20-bc1-7.build.redhat.com) (gcc version 4.1.2 20070626 (Red Hat 4.1.2-14)) (from /proc/version :-) ) .

Our suspicion was that the client was not able to open a socket and that is when we got that error . On checking each of the httpd processes on the system we found that not even one of them was surpassing the 1024 limit (revealed through 'ulimit -a').
Any help or suggestions in thi direction would be valued.

Regards
Faiz

Comments

  • You should check the server, not the client. This exception is raised somewhere in the server (in an operation called by the client), but it is not handled there, so it is transferred as an "UnknownLocalException" to the client. Try to set the property Ice.Warn.Dispatch=1 in your server for more information. See this manual page for more information: http://www.zeroc.com/doc/Ice-3.2.1/manual/PropRef.50.3.html