I have 3 Mx240 connected to my internet edges and one of them when doing SNMP polling is reporting 75% memory usage and alerting me all the time. Is this to high for the MX240? Should I be concerned? Is there a way to clear the inactive memory and zombie processes?
Howdy, Based on what you just explained and provided it does not seem to be a problem with the zombie processes or a shortage/misused memory from the device, It seems to be something external, to be precise it might be related to an aggressive SNMP polling interval.
At the time you took these outputs the load averages were pretty low, your idle percentage was pretty high and there is no other process showing that is consuming a large amount of your CPU memory (spiking) which means that most of the times your device is in a really good stand.
I would recommend you check and see if the mib2 or the snmpd process is going high when the issue is happening and if that is the case you can try by lowering the polling intervals because 75% of a CPU spike could leave some other processes without CPU memory and eventually crash them.
Regarding the zombie process, there is a way :
Use the “ps aux | grep -w Z ” from shell in order to list the zombie processes.
% ps aux | grep –Wz Pid=17659 Pid=16898
Once you find the PID of the offender process, you can kill it from the shell with the command kill -9 + PID.
%kill -9 17659
%kill -9 16898
PID: process ID
If this solves your problem, please mark this post as "Accepted Solution" so we can help others too \:)/
Lil Dexx JNCIE-ENT#863, 3X JNCIP-[SP-ENT-DC], 4X JNCIA [cloud-DevOps-Junos-Design], Champions Ingenius, SSYB
Thx lil Dexx for the reply but this is related to memory usage not cpu usage and its a constant issue. The reason I am aware of it at all is a SNMP poll that checks for memory usage and if its over 75% warn me. I know its not a critical because my memory usage for weeks was going between 74% and 75%. Its crept up to 75-76% now so I need to address this at some point.