Applictions are starting with nice -20


 
Thread Tools Search this Thread
Operating Systems Solaris Applictions are starting with nice -20
# 1  
Old 01-03-2014
Applictions are starting with nice -20

Hi All,


In my Solaris 10 server, am facing a weird issue recently.

issue am facing is, My applications are starting with nice -20 as default as 0, am not able to fix this checked my scripts, everything is the same.

Also 2 users starting all apps with -20 instead of 0

can some one suggest why is this happening & how to fix it,

as a temporary fix i am checking the pids and renice them manually

Thanks in Advance
# 2  
Old 01-07-2014
Maybe helpful: print the process tree, and every time display the nice value.
E.g. the process tree of the current shell:
Code:
ptree $$ | while read pid rest; do echo `ps -p $pid -o pid= -o nice= -o user=; echo "$rest"`; done

# 3  
Old 01-07-2014
Thanks for replying dude..
I made a temporary fix for the issue by writing a script, that will automatically check for the priority & renice it to 0.

But i want to know how it was changed. also hte same script on the other servers is the same and they are starting with normal priority

I tried to use your code, it is taking me to > prompt..

Please suggest..

Thanks in advance !!
# 4  
Old 01-08-2014
Start a new /bin/sh to ensure that no shell aliases/functions obscure the commands.
Then copy/paste my example.
The 2nd column is the nice level.
NB Solaris has got two representations:
Normal 20 and High 0, or
Normal 0 and High -20
The ptree (process tree) shows the parents of a process, so you can see where the nice level was inherited - or changed.
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

How to grep a line not starting with # from a file (there are two lines starting with # and normal)?

e.g. File name: File.txt cat File.txt Result: #INBOUND_QUEUE=FAQ1 INBOUND_QUEUE=FAQ2 I want to get the value for one which is not commented out. Thanks, (3 Replies)
Discussion started by: Tanu
3 Replies

2. AIX

nice and renice

hello , We would like to increase the priority of the oracle process . Process(240001 ) should get the priority like the process(240103 ). Am not sure what value i should mention in the renice command(aix 6.1). Please assist me. 240001 A oracle 26804312 1 0 60 20... (2 Replies)
Discussion started by: gowthamakanthan
2 Replies

3. Shell Programming and Scripting

Need a nice logic

Hi all, Given a scenario there is a folder and files will be coming into the folder at random time.The files that came in need to be mailed. And an important thing no file should be missed out as well as no file should be sent twice. One idea is that we can schedule a script that runs for... (2 Replies)
Discussion started by: kannangce
2 Replies

4. HP-UX

top and nice

Hi, I have two identical 12 CPU HPUX machines, and I run the same processes on each that load the boxes fully. top on one reports activity under the NICE (19%) and SYS (18%) columns, while top on the other reports 0% NICE and 16% SYS. What would cause NICE to be zero on one machine and not... (5 Replies)
Discussion started by: CBorgia
5 Replies

5. UNIX for Advanced & Expert Users

recursive nice value

Hi all, I have a running process that will spawn a large number of perl processes. How can I set that these all get spawned with a low priority nice value? I don't mind if all perl related processes take this level. Note, the executing script is compiled and can not be altered at a code... (1 Reply)
Discussion started by: nhatch
1 Replies

6. Programming

nice command and nice() system call

Hi I want to implement the nice command in the shell that I am building. I came to know that there is a corresponding nice() system call for the same. But since I will be forking different processes to run different commands typed on the command prompt, is there any way I can make a command... (2 Replies)
Discussion started by: tejbuch
2 Replies

7. UNIX for Advanced & Expert Users

Question regarding nice

If i use nice/renice to increase the priority of any process, will that process get a higher priority when it comes to I/O? If there are two processes waiting on I/O requests, will the process that has a higher priority have its I/O request processes first? This came up in a discussion at work,... (2 Replies)
Discussion started by: blowtorch
2 Replies

8. Post Here to Contact Site Administrators and Moderators

Very Nice

Just a quick message to say great work to Neo and any others who have helped with the upgrade - the layout, appearance and functionality of this forum ROCKS. By far the best I have seen. Excellent! (1 Reply)
Discussion started by: alwayslearningunix
1 Replies
Login or Register to Ask a Question