Linux

download Linux

of 2

Transcript of Linux

To find the number of physical CPUs in Linux:

$ cat /proc/cpuinfo | grep ^physical id | sort | uniq | wc -l

To find the number of cores per CPU in Linux:

$ cat /proc/cpuinfo | grep ^cpu cores | uniq

The total number of processors available is the number of physical CPUs multiplied by the number of cores per CPU.

To find the total number of processors:

$ cat /proc/cpuinfo | grep ^processor | wc l

how can we solve any performance issue?

Sathish PrakasamMarch 19 at 4:46pmUnlike1 Byanalyzingthe GC logs byanalyzingpermgen space, heap memory max and min, By monitoringthe idle threads, any servicewhich is taking high response times, monitoring datasources for current connection, used connections, and fine tuning the JVM may give better results..

"suppose at that time bulk no.of requests are coming... server is too much overloaded? Even though adjust the heap memory also they are getting the same result... how do you tune that situation? Ashish Guptafor application perspective try to tune thread values for different engines i.e bpel etc ... can be achieved from em console itself.March 19 at 7:54pmLike Mukesh Negithen you have to make proper capacity planning. Create more managed servers and divert the request to them also in round robin.

kill -3 pid >> file.txt - doesn't work as thread dump will be redirected to .out file by default, if you are using jrockit then u can use jrcmd print_threads pid - this output can be redirected to a file

What is Incident-Change-problem management?

There are 3 types of activities that an admin should take care

1.Incident management (Unscheduled activities comes under this like basic issues which includes disk partition alerts and monitoring system alerts.)

2.Change management (Scheduled activities comes under this like CMs)

3.Problem management (Repeatedly occuring issues will comes under problem management which inturn needs an RCA)Hope it will help you.