Why is the Java process taking up to 100% and how do I prevent it?

Status
Not open for further replies.

Ryback

Cadet
Joined
Aug 13, 2013
Messages
9
The other day I noticed I was getting e-mails from my Freenas with the following message:
subject: Cron <operator@freenas> /usr/libexec/save-entropy
message: /usr/libexec/save-entropy: Cannot fork: Resource temporarily unavailable

When I got home from work I rebooted the box and didn't think much of it. Today the e-mails where back and I figured I should look more into the issue.

I logged on to the web-console and saw something like this in the whatchamacallit at the bottom:
freenas kernel: maxproc limit exceeded by uid 0 (pid 23661); see tuning(7) and login.conf(5)

After a little while the web console stopped responding and I logged on to the IPMI-console and rebooted again.

When Freenas was booted again I tried looking into this PID-thing and from what I can reckon Java is hogging the cpu.

output of top-command:

PID USERNAME THR PRI NICE SIZE RES STATE C TIME WCPU COMMAND
26409 root 1 121 19 1170M 963M CPU0 0 13:09 100.00% java
31284 root 2 21 0 102M 20944K select 3 0:01 1.46% python2.
26000 root 1 39 19 1170M 963M futex 0 0:13 0.78% java
30810 transmission 3 20 0 117M 45264K select 1 0:06 0.39% transmis
3771 root 6 20 0 311M 114M usem 2 0:06 0.00% python2.
5115 root 12 20 0 145M 13904K uwait 2 0:02 0.00% collectd
25999 root 1 52 19 1170M 963M futex 0 0:02 0.00% java
4919 nobody 1 20 0 9908K 2312K select 0 0:01 0.00% mdnsd
22324 www 1 20 0 26044K 6592K kqread 2 0:00 0.00% nginx
11470 root 6 20 0 141M 30024K usem 2 0:00 0.00% python2.
24139 root 4 52 0 160M 45848K select 3 0:00 0.00% python2.
8852 root 6 20 0 146M 30120K usem 1 0:00 0.00% python2.
6594 root 6 52 0 157M 30896K usem 3 0:00 0.00% python2.
7676 root 6 20 0 147M 29580K usem 1 0:00 0.00% python2.
13721 root 1 21 0 149M 45988K ttyin 2 0:00 0.00% python2.
26024 root 1 40 19 1170M 963M futex 0 0:00 0.00% java

Sadly I'm not very Unix-savvy and I therefore turn to you for guidance.

I'm running FreeNAS-9.2.1-RELEASE-x64 (bd35c86) and my hardware setup is this:
4 KINGSTON Valueram/ 8GB 1600MHz KVR16LE11/8EF
1 IBM Express ServeRAID M1015 90Y4556
1 Intel(R) Core(TM) i3-3240 CPU @ 3.40GHz
1 Supermicro motherboard X10SLL-F
6 Western Digital Red 3TB
 
Last edited:

Whattteva

Wizard
Joined
Mar 5, 2013
Messages
1,824
What exactly are you running that requires so many java processes (by root, too)? My FreeNAS installation has none running at all. In fact, java command is not even recognized by the shell (I'm running 9.2.1.7, not sure if this has been changed in 9.2.1.8).
 

danb35

Hall of Famer
Joined
Aug 16, 2011
Messages
15,504
What @Whattteva said--you've got something else running there. What plugins do you have installed, and/or what software have you installed in a jail? Hopefully you haven't tried to add anything to the base install.
 

SweetAndLow

Sweet'NASty
Joined
Nov 6, 2013
Messages
6,421
My guess is that he is running transmission and probably crashplan. Crashplan uses java and easily take up processing power when doing a backup.
 

Ryback

Cadet
Joined
Aug 13, 2013
Messages
9
As SweetAndLo wrote, I am running transmission and Crashplan.

I tried turning off the plugins, but it is still at 100%. I haven't installed anything except the plugins. I have cifs and nfs shares. I have been running transmission for several months and crashplan for two months and have done no changes to the system since installing crashplan.

upload_2014-10-16_20-3-51.png
 
Last edited:

aran kaspar

Explorer
Joined
Mar 24, 2014
Messages
68
This just happened to me today.
Transmission, Plex, ownCloud running.
Q6700 - 8GB - 1 ZFSmirrors set of 1TB drives.
No Autotune
Only Sysctl tunables for Fibre Channel for which HBA cables are currently unplugged... hmmm...

Lost WebGui and SSH access. Any ideas?
Console (KVM) is stuck with magnitudes of these entries and despite my efforts to Ctrl+C / Ctrl+Z nothing happens. Just returns... ^C ^Z ^X
ESC doesn't help either ;)

maxproc limit exceeded by uid 0 (pid 6282); see tuning(7) and login.cong
maxproc limit exceeded by uid 0 (pid 8670); see tuning(7) and login.cong
maxproc limit exceeded by uid 0 (pid 7526); see tuning(7) and login.cong
 
Last edited:
Status
Not open for further replies.
Top