Oracle Solaris System Administration (MOSC)

MOSC Banner

plimit vs ulimit

edited Jun 18, 2016 5:00AM in Oracle Solaris System Administration (MOSC) 1 commentAnswered

Would anyone be able to explain why these two queries regarding file descriptor limits do not agree?

1. (check tomcat user's open file limit, soft and hard)

# su tomcat -c "ulimit -Sn; ulimit -Hn"

256

65536

...which is the typical default

2. (run plimit against running tomcat process)

# plimit 2359

2359:   /tools/jdk1.7.0_91/bin/sparcv9/java -Djava.util.logging.config.file=/t

   resource              current         maximum

  time(seconds)         unlimited       unlimited

  file(blocks)          unlimited       unlimited

  data(kbytes)          unlimited       unlimited

  stack(kbytes)         8192            unlimited

  coredump(blocks)      unlimited       unlimited

  nofiles(descriptors)  65536           65536

  vmemory(kbytes)       unlimited       unlimited

Would the soft/current limit be higher for the process because something in tomcat has explicitly increased it?  I have not done this in any start script so I don't know why else the limit would be so much higher for the running process vs what ulimit reports.

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center