Question: I observed a Java process running at root level through top command on my application server, will it lead to performance problems?

Question

I observed a Java process running at root level through top command on my application server, will it lead to performance problems?

Answers 1
Added at 2016-12-31 08:12
Tags
Question

We were running a load test and simultaneously executed top command and observed that Java process (running at root level) was consuming 204℅ cpu, even though we ran just 10℅ of expected load on server.

Also one of my colleagues said that a Java process should not be running at root level as this leads to performance issues.

I tried searching the internet but could not find anything which says that Java process should not run at root level.

Note for experts :- please excuse me for my lack of knowledge, please do not download or block the question.

Screen shot of top command:

enter image description here

Answers to

I observed a Java process running at root level through top command on my application server, will it lead to performance problems?

nr: #1 dodano: 2017-01-04 18:01

That's incorrect -- running a process as root will not affect performance, but will likely affect security.

The reason why everyone says not to run your processes as root unless ABSOLUTELY NECESSARY is because the root user has privileges over the entire disk, and many other things: external devices, hardware, processes, etc.

Running code that interacts with the world as root means that if anyone can find a vulnerability in your code / project / process / whatever, the amount of damage / harm that can be done is likely WAY MORE than what could be possible by a non-root user.

Source Show
◀ Wstecz