Monthly Archives: April 2010

ulimit -n in Solaris 10

ulimit -n behaves differently in Solaris 10. In Linux, I can modify the ulimit -n (open file descriptor limit) to any value as long as not exceeding the hard limit (ulimit -Hn). In Solaris, the default open file descriptor limits are:

rlim_fd_max= 65536 // hard limit
rlim_fd_cur= 256 // soft limit

After logging into Solaris, you can issue ulimit -n XXXX, then, the highest limit for your login session is set to XXXX. You can issue subsequent ulimit -n yyyy to lower the limit. Any attempt to increase the limit will be hit with an error.

Last login: Thu Apr 29 09:39:47 2010 from xx.xx.xx.xx
Sun Microsystems Inc. SunOS 5.10 Generic January 2005
user@server:~$ ulimit -n
256
user@server:~$ ulimit -n 8192
user@server:~$ ulimit -n
8192
user@server:~$ ulimit -n 8191
user@server:~$ ulimit -n
8191
user@server:~$ ulimit -n 8192
-bash: ulimit: open files: cannot modify limit: Not owner
user@server:~$

Java plugin not working in Firefox 3.6.x

Debian lenny’s iceweasel is old, thus I download and install the tar-zip version from mozilla. All plugins from iceweasel are working fine except java. Java applet did not work in the Firefox 3.6.2 that I’m using. Looking at the plugin list, java is missing. Following the instruction from mozilla didn’t help. After searching the web for some time, finally, I found the solution here.

The plugin file libjavaplugin_oji.so only work in Firefox 3.5 and below. For Firefox 3.6, the correct plugin file is libnpjp2.so. In debian lenny, it is located at /usr/lib/jvm/java-6-sun-1.6.0.12/jre/lib/i386/libnpjp2.so.

Simply do this:

$ cd /path_where_firefox_is_installed/
$ cd plugins
$ ln -s /usr/lib/jvm/java-6-sun-1.6.0.20/jre/lib/i386/libnpjp2.so