Interview Questions

Why do I get "NoClassDefFound"/"Too Many Open files"messages on Solaris? ...

BEA WebLogic Questions and Answers


(Continued from previous question...)

Why do I get "NoClassDefFound"/"Too Many Open files"messages on Solaris? ...

Why do I get "NoClassDefFound"/"Too Many Open files"messages on Solaris?
Problem: When I am using WebLogic Server on Solaris and try to run my application, I get a "NoClassDefFound" error, although the class causing the error does exist and is in the right directory. In fact, there are other classes in the same directory that are getting loaded. I also get a "Too many open files" error.

We have seen this situation when the user account runs out of file descriptors. On Solaris, each user account has a certain limited number of file descriptors. You can find out how many file descriptors you have with the limit command in csh.
You can increase file descriptors if you have enough privileges with the ulimit command in the csh. Otherwise, ask your system administrator to increase the file descriptors available to your processes.

(Continued on next question...)

Other Interview Questions