Server Process taking all CPU time intermittently on Solaris

Hi,
What does my program do :-
We have been facing this problem from many days, We have a server
process which is continuously listening at a port on Solaris 5.8.
Whenever a request is sent to this server a new thread & a socket is created for that client.
This process is running as a proxy server, which connects to some other machine on client request.
Problem:
The process start taking whole CPU after few days, happens in a weeks
period. The process remain in this state for few hours & after that it
stops responding to any requests.
& the only thing which can be done, to make it work is to restart the
process.
If someone has faced a similar problem then please let me know if you
have found a solution for that.
I will give 10 duke dollars to you if you can provide a solution for this problem.
Regards,
Sachin

Here is another class which is used in my code:
package com.ge.med.service.olea.telnetapplet.proxy;
import java.io.*;
import java.net.*;
import java.util.*;
* This class is a generic framework for a flexible, multi-threaded server.
* It listens on any number of specified ports, and, when it receives a
* connection on a port, passes input and output streams to a specified Service
* object which provides the actual service. It can limit the number of
* concurrent connections, and logs activity to a specified stream.
public class Server {
// This is the state for the server
ConnectionManager connectionManager; // The ConnectionManager object
Hashtable services; // The current services and their ports
ThreadGroup threadGroup; // The threadgroup for all our threads
PrintWriter logStream; // Where we send our logging output to
* This is the Server() constructor. It must be passed a stream
* to send log output to (may be null), and the limit on the number of
* concurrent connections. It creates and starts a ConnectionManager
* thread which enforces this limit on connections.
public Server(OutputStream logStream, int maxConnections) {
setLogStream(logStream);
log("Starting server");
threadGroup = new ThreadGroup("Server");
connectionManager = new ConnectionManager(threadGroup, maxConnections);
connectionManager.start();
services = new Hashtable();
* A public method to set the current logging stream. Pass null
* to turn logging off
public void setLogStream(OutputStream out) {
if (out != null) logStream = new PrintWriter(new OutputStreamWriter(out));
else logStream = null;
/** Write the specified string to the log */
protected synchronized void log(String s) {
if (logStream != null) {
logStream.println("[" + new Date() + "] " + s);
logStream.flush();
/** Write the specified object to the log */
protected void log(Object o) { log(o.toString()); }
* This method makes the server start providing a new service.
* It runs the specified Service object on the specified port.
public void addService(Service service, int port) throws IOException {
Integer key = new Integer(port); // the hashtable key
// Check whether a service is already on that port
if (services.get(key) != null)
throw new IllegalArgumentException("Port " + port + " already in use.");
// Create a Listener object to listen for connections on the port
Listener listener = new Listener(threadGroup, port, service);
// Store it in the hashtable
services.put(key, listener);
// Log it
log("Starting service " + service.getClass().getName() +
" on port " + port);
// Start the listener running.
listener.start();
* This method makes the server stop providing a service on a port.
* It does not terminate any pending connections to that service, merely
* causes the server to stop accepting new connections
public void removeService(int port) {
Integer key = new Integer(port); // hashtable key
// Look up the Listener object for the port in the hashtable of services
final Listener listener = (Listener) services.get(key);
if (listener == null) return;
// Ask the listener to stop
listener.pleaseStop();
// Remove it from the hashtable
services.remove(key);
// And log it.
log("Stopping service " + listener.service.getClass().getName() +
" on port " + port);
* This nested class manages client connections for the server.
* It maintains a list of current connections and enforces the
* maximum connection limit. It creates a separate thread (one per
* server) that sits around and wait()s to be notify()'d that a connection
* has terminated. When this happens, it updates the list of connections.
public class ConnectionManager extends Thread {
int maxConnections; // The maximum number of allowed connections
Vector connections; // The current list of connections
* Create a ConnectionManager in the specified thread group to enforce
* the specified maximum connection limit. Make it a daemon thread so
* the interpreter won't wait around for it to exit.
public ConnectionManager(ThreadGroup group, int maxConnections) {
super(group, "ConnectionManager");
this.setDaemon(true);
this.maxConnections = maxConnections;
connections = new Vector(maxConnections);
log("Starting connection manager. Max connections: " + maxConnections);
* This is the method that Listener objects call when they accept a
* connection from a client. It either creates a Connection object
* for the connection and adds it to the list of current connections,
* or, if the limit on connections has been reached, it closes the
* connection.
synchronized void addConnection(Socket s, Service service) {
// If the connection limit has been reached
if (connections.size() >= maxConnections) {
try {
PrintWriter out = new PrintWriter(s.getOutputStream());
// Then tell the client it is being rejected.
out.println("Connection refused; " +
"server has reached maximum number of clients.");
out.flush();
// And close the connection to the rejected client.
s.close();
// And log it, of course
log("Connection refused to " + s.getInetAddress().getHostAddress() +
":" + s.getPort() + ": max connections reached.");
} catch (IOException e) {log(e);}
else {  // Otherwise, if the limit has not been reached
// Create a Connection thread to handle this connection
Connection c = new Connection(s, service);
// Add it to the list of current connections
connections.addElement(c);
// Log this new connection
log("Connected to " + s.getInetAddress().getHostAddress() +
":" + s.getPort() + " on port " + s.getLocalPort() +
" for service " + service.getClass().getName());
// And start the Connection thread running to provide the service
c.start();
* A Connection object calls this method just before it exits.
* This method uses notify() to tell the ConnectionManager thread
* to wake up and delete the thread that has exited.
public synchronized void endConnection() { this.notify(); }
/** Change the current connection limit */
public synchronized void setMaxConnections(int max) { maxConnections=max; }
* Output the current list of connections to the specified stream.
* This method is used by the Control service defined below.
public synchronized void printConnections(PrintWriter out) {
for(int i = 0; i < connections.size(); i++) {
Connection c = (Connection)connections.elementAt(i);
out.println("CONNECTED TO " +
c.client.getInetAddress().getHostAddress() + ":" +
c.client.getPort() + " ON PORT " + c.client.getLocalPort()+
" FOR SERVICE " + c.service.getClass().getName());
* The ConnectionManager is a thread, and this is the body of that
* thread. While the ConnectionManager methods above are called by other
* threads, this method is run in its own thread. The job of this thread
* is to keep the list of connections up to date by removing connections
* that are no longer alive. It uses wait() to block until notify()'d by
* the endConnection() method.
public void run() {
while(true) {  // infinite loop
// Check through the list of connections, removing dead ones
for(int i = 0; i < connections.size(); i++) {
Connection c = (Connection)connections.elementAt(i);
if (c != null && !c.isAlive()) {
connections.removeElementAt(i);
               try      {
                    //close server socket. SPR SVCge16539. Sachin Joshi.
                    Socket server = ProxyServer.Proxy.getServerSocket(c.client);                    
                    if (server != null)
                         server.close();
                    //close client socket.
                    if (c.client != null)
                         c.client.close();                    
               catch (java.io.IOException e)     {
                    System.err.println("Error closing connection " + e);
               catch (Exception e)     {
                    System.err.println("Cannot Establish Connection !! " + e);
log("Connection to " + c.client.getInetAddress().getHostAddress() +
":" + c.client.getPort() + " closed.");
          System.out.println("Total Connections now = " + connections.size());
// Now wait to be notify()'d that a connection has exited
// When we wake up we'll check the list of connections again.
try { synchronized(this) { this.wait(); } }
catch(InterruptedException e) {}
* This class is a subclass of Thread that handles an individual connection
* between a client and a Service provided by this server. Because each
* such connection has a thread of its own, each Service can have multiple
* connections pending at once. Despite all the other threads in use, this
* is the key feature that makes this a multi-threaded server implementation.
public class Connection extends Thread {
Socket client; // The socket to talk to the client through
Service service; // The service being provided to that client
* This constructor just saves some state and calls the superclass
* constructor to create a thread to handle the connection. Connection
* objects are created by Listener threads. These threads are part of
* the server's ThreadGroup, so all Connection threads are part of that
* group, too.
public Connection(Socket client, Service service) {
super("Server.Connection:" + client.getInetAddress().getHostAddress() +
":" + client.getPort());
this.client = client;
this.service = service;
* This is the body of each and every Connection thread.
* All it does is pass the client input and output streams to the
* serve() method of the specified Service object. That method
* is responsible for reading from and writing to those streams to
* provide the actual service. Recall that the Service object has been
* passed from the Server.addService() method to a Listener object
* to the ConnectionManager.addConnection() to this Connection object,
* and is now finally getting used to provide the service.
* Note that just before this thread exits it calls the
* ConnectionManager.endConnection() method to wake up the
* ConnectionManager thread so that it can remove this Connection
* from its list of active connections.
public void run() {
try {
InputStream in = client.getInputStream();
OutputStream out = client.getOutputStream();
// service.serve(in, out);
((ProxyServer.Proxy)service).serve(in, out,client);
catch (IOException e) {log(e);}
finally { connectionManager.endConnection(); }
* Here is the Service interface that we have seen so much of.
* It defines only a single method which is invoked to provide the service.
* serve() will be passed an input stream and an output stream to the client.
* It should do whatever it wants with them, and should close them before
* returning.
* All connections through the same port to this service share a single
* Service object. Thus, any state local to an individual connection must
* be stored in local variables within the serve() method. State that should
* be global to all connections on the same port should be stored in
* instance variables of the Service class. If the same Service is running
* on more than one port, there will typically be different Service instances
* for each port. Data that should be global to all connections on any port
* should be stored in static variables.
* Note that implementations of this interface must have a no-argument
* constructor if they are to be dynamically instantiated by the main()
* method of the Server class.
public interface Service {
public void serve(InputStream in, OutputStream out) throws IOException;     
     }

Similar Messages

  • Server0 process taking too much time

    Hi All,
        Once i start the Netweaver server, the server) process taking too much time.
    When i was installed Netweaver that time 13 min, after 2 months 18 min.. then 25 min now it is taking 35 minutes.... to become green color.
    Why it is taking too much time, what might be the cause.....
    Give some ideas to solve this problem..............
    The server0 developer trace has this information continuously 6 to 7 times...
    [Thr 4204] *************** STISEND ***************
    [Thr 4204] STISEND: conversation_ID: 86244265
    [Thr 4204] STISEND: sending 427 bytes
    [Thr 4204] STISearchConv: found conv without search
    [Thr 4204] STISEND: send synchronously
    [Thr 4204] STISEND GW_TOTAL_SAPSEND_HDR_LEN: 88
    [Thr 4204] NiIWrite: hdl 0 sent data (wrt=515,pac=1,MESG_IO)
    [Thr 4204] STIAsSendToGw: Send to Gateway o.k.
    [Thr 4204] STIAsRcvFromGw: timeout value: -1
    [Thr 4204] NiIRead: hdl 0 recv would block (errno=EAGAIN)
    [Thr 4204] NiIRead: hdl 0 received data (rcd=3407,pac=2,MESG_IO)
    [Thr 4204] STIAsRcvFromGw: Receive from Gateway o.k.
    [Thr 4204] STISEND: data_received: CM_COMPLETE_DATA_RECEIVED
    [Thr 4204] STISEND: received_length: 3327
    [Thr 4204] STISEND: status_received: CM_SEND_RECEIVED
    [Thr 4204] STISEND: request_to_send_received: CM_REQ_TO_SEND_NOT_RECEIVED
    [Thr 4204] STISEND: ok
    [Thr 4204] STIRCV: new buffer state = BUFFER_EMPTY
    [Thr 4204] STIRCV: ok
    [Thr 4204] *************** STSEND ***************
    [Thr 4204] STSEND: conversation_ID: 86244265
    [Thr 4204] STISearchConv: found conv without search
    [Thr 4204] STSEND: new buffer state = BUFFER_DATA
    [Thr 4204] STSEND: 106 bytes buffered
    [Thr 4204] *************** STIRCV ***************
    [Thr 4204] STIRCV: conversation_ID: 86244265
    [Thr 4204] STIRCV: requested_length: 16000 bytes
    [Thr 4204] STISearchConv: found conv without search
    [Thr 4204] STIRCV: send 106 buffered bytes before receive
    [Thr 4204] STIRCV: new buffer state = BUFFER_DATA2
    [Thr 4204] *************** STISEND ***************
    then
    [Thr 4252] JHVM_NativeGetParam: get profile parameter DIR_PERF
    [Thr 4252] JHVM_NativeGetParam: return profile parameter DIR_PERF=C:\usr\sap\PRFCLOG
    this message continuously
    Can i have any solution for the above problem let me know .
    Thanks & regards,
    Sridhar M.

    Hello Manoj,
           Thanks for your quick response, Previously the server has 4GB RAM and now also it has same.
    Yesterday i found some more information, like deployed(through SDM) applications also take some memory at the time of starting the J2EE server...Is it right?
    Any other cause...let me know
    Thanks & Regards,
    Sridhar M.

  • Process SERVER0 its taking High CPU Time in XI

    Hi,
    We installed XI 3.0 develpoment server ,Process <b>SERVER0</b> its taking more CPU time.
    We are using AS/400 OS & DB2 datbase.Can any one tell me the reason & Solution for this.
    Thanks & Regards,
    Gopinath.

    hi,
    Actually the user XIRWBUSER its an RFC user but its running on many dialog process.I think high CPU time due to this user only.
    using 5 work processes and 3/4 of the available CPU for an extended amount of time.
    Total Total DB
    Job or CPU Sync Async CPU
    Task User Number Thread Pty Util I/O I/O Util
    WP11 D6464 485368 00000010 20 54.0 25 37 27.8
    WP05 X4242 498642 00000098 20 49.6 5 0 36.7
    WP04 X4242 498641 00000014 20 48.8 1 0 39.1
    WP02 X4242 498639 0000025A 20 47.1 2 0 37.8
    WP06 X4242 498643 000001E6 20 43.7 0 0 38.3
    WP00 X4242 498637 00000014 20 11.1 502 194 2.9
    pls can any one help me
    Regards,
    Gopinath.

  • Background process taking very long time to complete.

    Dear All,
    Platform: HP UX
    Version: 12.0.6
    While time of shutting down the instance below background process taking very long time to complete.
    what is below mention process? can i kill it? total 3 process i am getting while finding ps -ef|grep applpre(applepre is apps instance's owner)
    applpre/apps/tech_st/10.1.3/appsutil/jdk/bin/IA64N/java -DCLIENT_PROCESSID=5457 -server -Xmx384m -XX:+UseSerialGC -Dor
    Thanks in Advance,
    Sandeep.

    Sandeep,
    Please see (Note: 567551.1 - Configuring various JVM tuning parameters for Oracle E-Business suite 11i and R12).
    You can safely kill those processes from the OS.
    Thanks,
    Hussein

  • Which process taking high CPU

    Hi
    Our environment is having SCOM 2007 R2.
    I want to get the details of processes taking high CPU,memory in windows server 2003 , 2008. These details are stored in Opsmgr DatawareHouse ? , can I get in the form of reports? OR any script available.Please help.
    Regards
    Madhavi

    Hi Madhavi,
    Run this script on a server and you will get the individual process utilization. I am not sure how you exactly need this.
    strComputer = "localhost"
    Set objWMIService = GetObject("winmgmts:" _
        & "{impersonationLevel=impersonate}!\\" _
        & strComputer & "\root\cimv2")
    Set colProcesses = objWMIService.ExecQuery _
       ("Select * from Win32_Process")
    For Each objProcess in colProcesses
        Wscript.Echo "Process: " & objProcess.Name
        sngProcessTime = (CSng(objProcess.KernelModeTime) + _
            CSng(objProcess.UserModeTime)) / 10000000
        Wscript.Echo "Processor Time: " & sngProcessTime
        Wscript.Echo "Process ID: " & objProcess.ProcessID
        Wscript.Echo "Working Set Size: " _
        & objProcess.WorkingSetSize
        Wscript.Echo "Page File Size: " _
        & objProcess.PageFileUsage
        Wscript.Echo "Page Faults: " & objProcess.PageFaults
    Next
    Let me know if this helps
    Regards, Dhanraj

  • Dbms_stats.cleanup_stats_db_proc taking more CPU time.

    Hi All,
    Oracle 11g R2(11.2.0.3) EE , on Linux machine.
    Oracle auto optimizer stats collection enabled in our environment. In that dbms_stats.cleanup_stats_db_proc() taking more CPU time (more than 24 hours).
    Could you please suggest any solution.
    Thanks in advance.
    BR,
    Surya

    suresh.ratnaji wrote:
    NAME                                 TYPE        VALUE
    _optimizer_cost_based_transformation string      OFF
    filesystemio_options                 string      asynch
    object_cache_optimal_size            integer     102400
    optimizer_dynamic_sampling           integer     2
    optimizer_features_enable            string      10.2.0.4
    optimizer_index_caching              integer     0
    optimizer_index_cost_adj             integer     100
    optimizer_mode                       string      choose
    optimizer_secure_view_merging        boolean     TRUE
    plsql_optimize_level                 integer     2
    please let me know why it taking more time in INDEX RANGE SCAN compare to the full table scan?Suresh,
    Any particular reason why you have a non-default value for a hidden parameter, optimizercost_based_transformation ?
    On my 10.2.0.1 database, its default value is "linear". What happens when you reset the value of the hidden parameter to default?

  • Oracle internal queries taking more CPU time

    Hi,
    Following are queries taking more CPU time. I got this from awr report. Can anyone tell me why these queries are running? Is it a oracle enterprise manager query? should I use
    emctl stop dbconsole to stop this?
    DECLARE job BINARY_INTEGER := :job; next_date DATE := :mydate; broken BOOLEAN := FALSE; BEGIN EMD_MAINTENANCE.EXECUTE_EM_DBMS_JOB_PROCS(); :mydate := next_date; IF broken THEN :b := 1; ELSE :b := 0; END IF; END;
    SELECT COUNT(*) FROM MGMT_METRIC_DEPENDENCY_DETAILS DEP, MGMT_SEVERITY SEV WHERE DEP.TARGET_GUID = :B5 AND DEP.METRIC_GUID = :B4 AND DEP.KEY_VALUE = :B3 AND DEP.EDEP_TARGET_GUID = SEV.TARGET_GUID AND DEP.EDEP_METRIC_GUID = SEV.METRIC_GUID AND DEP.DEP_KEY_VALUE = SEV.KEY_VALUE AND SEV.COLLECTION_TIMESTAMP BETWEEN :B2 AND :B1
    SELECT CURRENT_STATUS FROM MGMT_CURRENT_AVAILABILITY WHERE TARGET_GUID = :B1
    Thanks in advance
    With Regards
    boobathi.P

    Hi,
    maybe this document will help if you are using 10g:
    SQL run by SYSMAN consuming a lot of resources on OMS with 800+ targets [ID 330383.1]
    https://support.oracle.com/CSP/main/article?cmd=show&type=NOT&doctype=PROBLEM&id=330383.1
    there you'll find Cause and Solution too:
    SYSMAN Job and Queries are Taking Up High CPU (DB Console) [ID 1288301.1]
    https://support.oracle.com/CSP/main/article?cmd=show&type=NOT&doctype=PROBLEM&id=1288301.1
    For databases above version 11.1 there are paches available.
    Best,
    Michael T. Z.

  • OAS 4.0.8.1 wrksf taking all CPU

    Hi,
    My configuration is: NT SP6a, Oracle 8.0.5, OAS 4.0.8.1. All running on the
    same server. OAS and Oracle 8 are in the same ORACLE_HOME. Whenever I
    start OAS from the admin site, the WRKSF (catridge server) process takes up
    100% of the CPU.
    Could someone advice me how to trouble shoot this. Is there a fix? Pls ask
    me more info if you need to.
    Thank you so much.
    -Julian
    null

    My experience with wrksf, on Mandrake 7.0 (RH 6.1+) is that wrksf starts at first, then bails after about a second.
    I have a couple cartridges installed, C and Perl, and it starts those cartridges up and then fails. I don't get the same error message that you do, but there is an error in the wrb.log:
    `OWS-10911: Throwing exception for reason: wrkpGetProperty 2 `
    `OWS-04793: Operation oracle_OAS_System_CartridgeServerFactory_create_nwreturns exception IDL:omg.org/CORBA/UNKNOWN:1.0 `
    I'm not sure what this is all about, but it does start up my cartridges at first, because I specified a mininum number to start up initially, and a minimum number of instances.
    They just don't come back if terminated, since wrksf isn't there.
    BTW, this is the same error I encountered when, on NT, I compiled a c cartridge with Metroworks CodeWarrior instead of MS Visual C++ v6.0. So I wonder if this has something to do with compiler incompatibility, if wrksf was compiled with a different compiler from the rest of OAS. While compilers don't usually matter for C, they do for C++, and all binaries and libraries must be compiled with the same compiler/linker to work together.
    Just a stab in the dark.
    rob

  • Mail in 10.6.4 not usable: it consumes all CPU time and will not quit

    Mail application does not work properly.
    It eats up most of the available CPU time (till >300% on my machine), becomes unresponsive and will only quit when killed by a force quit in the Activity Monitor.
    I have only two accounts set up. One Gmail account and a google apps one.
    I used to synch with a Blackberry but now I synch directly through google apps.
    The problem was sporadic at best at first but has become the usual behaviour now. Major change has been installing 10.6.4
    I have switched to Thunderbird since Mail is not usable.
    Tx for any hint on how to solve this issue

    It seems to be a recurring issue with 10.6.4...there's probably not much mere mortals like us can do. I haven't found a solution. Try re-installing 10.6.4.

  • When I start FireFox the process with the image name System and user name System (looking in Task Manager) starts taking tremendous CPU time (up to 50% or more).

    I am using FireFox 4.0.1 for Windows, and routinely check for updates. It did not do this under previous versions (not sure it is was specific to 4.0.1 or with started with 4.0) I have watched the CPU utilization when starting other applications including Thunderbird, and the high utilization by this process so far seems tied to whenever I start up the newer version of FireFox.

    Start your '''Computer''' in safe mode. Then start Firefox. Try '''Safe''' web sites.
    '''[http://encyclopedia2.thefreedictionary.com/Linux+Safe+Mode Starting The Computer In Safe Mode;<br>Free Online Encyclopedia]'''
    Sometimes a problem with Firefox may be a result of malware installed on your computer, that you may not be aware of.
    You can try these free programs to scan for malware, which work with your existing antivirus software:
    * [http://www.microsoft.com/security/scanner/default.aspx Microsoft Safety Scanner]
    * [http://www.malwarebytes.org/products/malwarebytes_free/ MalwareBytes' Anti-Malware]
    * [http://support.kaspersky.com/viruses/disinfection/5350 Anti-Rootkit Utility - TDSSKiller]
    * [http://general-changelog-team.fr/en/downloads/viewdownload/20-outils-de-xplode/2-adwcleaner AdwCleaner] (for more info, see this [http://www.bleepingcomputer.com/download/adwcleaner/ alternate AdwCleaner download page])
    * [http://www.surfright.nl/en/hitmanpro/ Hitman Pro]
    * [http://www.eset.com/us/online-scanner/ ESET Online Scanner]
    [http://windows.microsoft.com/MSE Microsoft Security Essentials] is a good permanent antivirus for Windows 7/Vista/XP if you don't already have one.
    Further information can be found in the [[Troubleshoot Firefox issues caused by malware]] article.
    Did this fix your problems? Please report back to us!

  • Wbengine.exe taking all CPU

    Im having issues with wbengine.exe I know its the block level backup for WSB however its killing my server (see below) we are running on 2 x 600gb R1 SAS 15k disks for where the os VM is stored and 3 x 1tb nearline 1tb disks 7.2k where the data for essentials
    ("server folders/folder redirection" is stored with another virtual server doing very little in the background there is plenty of memory and cpu for all vms (just the two)
    we have a backup on the vm start at 8 and finishes around 10 and a host backup that starts at 11 and finishes around 1 
    backups locally from WSB dont show to of started however they did on the host with warnings  any ideas ?
    UPDATE:
    After talking to some users the issue occurred on yesterday morning, it looks like WSB is causing issues backing up when on schedule, as looking at the CPU usage from 8 at night last night. Thats when it started maxing out and the backup began, a single
    one off backup seems to work fine using the settings of the schedule but scheduling seems to kill it. 
    To note this is going through ISCSI 

    Hi,
    Glad to hear that you have solved this issue and thanks for sharing your solution in the forum. Your time and efforts are highly appreciated.
    Best regards,
    Justin Gu

  • Restrict weblogic server process to single CPU

    Hi,
    Can anyone tell me how to restrict a weblogic server instance to a single CPU
    on a multiple CPU Windows 2000 box.
    Also if this is possible can I have two weblogic server instances which run parallel
    on a two CPU Windows 2000 box.
    Thanks,
    Bhushan Kowshik

    If you want a process on Windows to only use a subset of the available CPUs
    you can use Task Manager to set the affinity. Right click on a process (in
    your case java.exe) and choose "Set Affinity...".
    Regards,
    /Staffan
    "Bhushan Kowshik" <[email protected]> skrev i meddelandet
    news:3de6161b$[email protected]..
    >
    Hi,
    Can anyone tell me how to restrict a weblogic server instance to a singleCPU
    on a multiple CPU Windows 2000 box.
    Also if this is possible can I have two weblogic server instances whichrun parallel
    on a two CPU Windows 2000 box.
    Thanks,
    Bhushan Kowshik

  • Old query taking substantial CPU time in AWR report

    Hi,
    We have a particular query which used to generate substantial CPU wait event in the AWR report.On of our DBA's killed the query some days back but still today's AWR report shows that particular query as the largest CPU consumer (50%). When I checked from the view V$SQL the last execution time was of 23-02-2011.
    My question is after the query gets killed does it still show in the v$SQL ? And why is it still showing in the SQL BY ELAPSED TIME section ?
    Please help.

    No it is a select statement. I AM PASTING THE QUERY BELOW.
    select  /*+ FULL(COMP_TM) FULL(TRANS_TM) FULL(INVC_TM) */
                CUST_BE_ID     ,
                DISTR_BE_ID    ,
                FG_BE_ID         ,
                KIT_BE_ID        ,
                BG_ID_NO_BE_ID         ,
             ACTL_TERR_BE_ID       ,
                CORE_TERR_BE_ID      ,
            sum(     JNJ_LIST_AMT  ) AS JNJ_LIST_AMT,
                sum(     JNJ_PYMT_AMT            )  AS  JNJ_PYMT_AMT,
                sum(     JNJ_QTY           ) AS JNJ_QTY,
                sum(     JNJ_REB_AMT  ) AS JNJ_REB_AMT,
                sum(     JNJ_SLS_AMT  ) AS JNJ_SLS_AMT,
                sum(     KIT_LIST_AMT   ) AS KIT_LIST_AMT,
                sum(     KIT_QTY           ) AS KIT_QTY,
                sum(     KIT_SLS_AMT   ) AS KIT_SLS_AMT,
                sum(     FG_PYMT_AMT            ) AS FG_PYMT_AMT,
                sum(     FG_QTY           ) AS FG_QTY,
                sum(     FG_REB_AMT   ) AS FG_REB_AMT,
                sum(     FG_SLS_AMT   ) AS FG_SLS_AMT,
                sum(     FG_LIST_AMT   ) AS FG_LIST_AMT,
                to_date('15'||substr(COMP_TM.FISC_MO_CD,8,2)||substr(COMP_TM.FISC_MO_CD,3,4),'DDMMYYYY') AS     TRANS_MO_DATE,
                to_number(substr(COMP_TM.FISC_MO_CD,3,4) ) AS PRD_YR_CD, 
                to_number(substr(COMP_TM.FISC_MO_CD,8,2) ) AS PRD_MO_CD, 
                CONTR_PRD_TIER_NO,
                COMP_TM.FISC_MO_OID AS COMP_MO_BE_ID,
                CLSD_YR_FLG,
                ADJM_TRANS_CD,
                INVC_TM.FISC_MO_OID AS INVC_MO_BE_ID,
                ORD_TYP_CD,
                TRANS_TM.FISC_MO_OID AS TRANS_MO_BE_ID
    from
                FACT_DLY_ALGND_SLS F, DIM_TM_MV TRANS_TM,
                DIM_TM_MV INVC_TM, DIM_TM_MV COMP_TM
    /***** comment out for loading historical data....  ***/
    WHERE F.PRD_YR_CD >= (select case when to_number(to_char(sysdate,'MM')) <= 3
                         then to_number(to_char(sysdate,'YYYY'))-1
                               else to_number(to_char(sysdate,'YYYY'))
                               end case from dual
    -- and F.PRD_YR_CD = '2008'
    AND F.COMP_DT_BE_ID=COMP_TM.BE_ID
    AND F.TRANSACTION_DATE = TRANS_TM.DAY_STRT_PRD_OF_TM
    AND TRANS_TM.DAY_OID = TRANS_TM.BE_ID
    AND F.INVC_DT = INVC_TM.DAY_STRT_PRD_OF_TM
    AND INVC_TM.DAY_OID = INVC_TM.BE_ID
    group by
                CUST_BE_ID     ,
                DISTR_BE_ID    ,
                FG_BE_ID         ,
                KIT_BE_ID        ,
                BG_ID_NO_BE_ID         ,
             ACTL_TERR_BE_ID       ,
                CORE_TERR_BE_ID      ,
                to_date('15'||substr(COMP_TM.FISC_MO_CD,8,2)||substr(COMP_TM.FISC_MO_CD,3,4),'DDMMYYYY'),
                to_number(substr(COMP_TM.FISC_MO_CD,3,4) ), 
                to_number(substr(COMP_TM.FISC_MO_CD,8,2) ), 
                CONTR_PRD_TIER_NO,
                COMP_TM.FISC_MO_OID ,
                CLSD_YR_FLG,
                ADJM_TRANS_CD,
                INVC_TM.FISC_MO_OID ,
                ORD_TYP_CD,
                TRANS_TM.FISC_MO_OIDI am wrong in the previous post. Actually the elapsed time in the AWR was showing 840 mins.

  • Genius updating taking 100%+ CPU time and error 13011

    Does anyone else have the issue of iTunes updating Genius causing their CPU usage to max out run the cooling fan at full speed?
    Im getting an average of 100%+ CPU usage while its updating or compiling or whatever its doing and Macbook cooks whiles its doing so.
    Activity Monitor is reporting ridiculously high CPU usage. How do you even get 108% CPU usage?? Can someone explain that for me?
    Im also getting the message 'unable to save library' with error 13011 at the end of Genius updating (the Genius update progress bar is full).
    Can anyone give me some pointers as to what I can do to check why i'm getting these issues or if there is resolution?
    Killing the Genius data gathering solves the CPU usage issue straight away but I'm sure it wasnt this bad before Snow Leopard.
    Cheers
    AC

    here is a log of the console messages relating to itunes if that helps anyone...
    11/09/09 8:22:24 AM [0x0-0x1cd1cd].com.apple.iTunes[4459] objc[4459]: Class DOMHTMLParamElement is implemented in both /System/Library/Frameworks/WebKit.framework/Versions/A/Frameworks/WebCore.frame work/Versions/A/WebCore and /Library/InputManagers/SafariBlock/SafariBlock.bundle/Contents/MacOS/SafariBloc k. One of the two will be used. Which one is undefined.
    11/09/09 8:22:24 AM [0x0-0x1cd1cd].com.apple.iTunes[4459] objc[4459]: Class WebBaseNetscapePluginView is implemented in both /System/Library/Frameworks/WebKit.framework/Versions/A/WebKit and /Library/InputManagers/SafariBlock/SafariBlock.bundle/Contents/MacOS/SafariBloc k. One of the two will be used. Which one is undefined.
    11/09/09 8:22:26 AM Firewall[65] iTunes is listening from 0.0.0.0:3689 proto=6
    11/09/09 8:22:27 AM Firewall[65] iTunes is listening from :::3689 proto=6
    11/09/09 8:22:27 AM [0x0-0x1cd1cd].com.apple.iTunes[4459] Child process initialized.
    11/09/09 8:22:28 AM /Applications/iTunes.app/Contents/MacOS/iTunes[4459] dnssd_clientstub read_all(49) failed -1/4 9 Bad file descriptor
    11/09/09 8:22:28 AM /Applications/iTunes.app/Contents/MacOS/iTunes[4459] dnssd_clientstub read_all(49) failed -1/4 9 Bad file descriptor
    11/09/09 8:22:28 AM /Applications/iTunes.app/Contents/MacOS/iTunes[4459] dnssd_clientstub read_all(45) failed -1/4 9 Bad file descriptor
    11/09/09 8:22:28 AM /Applications/iTunes.app/Contents/MacOS/iTunes[4459] dnssd_clientstub DNSServiceRefDeallocate called with invalid DNSServiceRef 0x1a808680 FFFF0004 DDDDDDDD
    11/09/09 8:22:28 AM /Applications/iTunes.app/Contents/MacOS/iTunes[4459] dnssd_clientstub DNSServiceRefDeallocate called with invalid DNSServiceRef 0x1a8025a0 00000000 80000000
    11/09/09 8:22:28 AM /Applications/iTunes.app/Contents/MacOS/iTunes[4459] dnssd_clientstub DNSServiceRefDeallocate called with invalid DNSServiceRef 0x1a8025e0 00000001 18B96E00

  • SMON process taking more CPU approx.49% of total CPU

    Hi,
    we have one isuue with one of our production database.
    database version 10.2.0.4
    OS Version AIX 5.3
    DB SIZE=450Gb
    when i check in database one delete Query is running in database is as follows and smon process of that perticular database consuming about 49%CPU.
    delete from smon_scn_time where thread=0 and scn = (select min(scn) from smon_scn_time where thread=0)
    please help me to resolved this issue.
    Thanks.

    SMON   and unaccessible   SMON_SCN_TIME table
    Please check the mentioned MOS doc in first place.

Maybe you are looking for

  • Multiple apps crash after 10.7.1

    Hello everybody, I am having some difficulties after upgrading to 10.7.1. It seems that all of the standard Mac applications are running with no trouble, but I am getting immediate crashes after running the following apps (and updating them to their

  • When exporting to PDF '&' and '?' in Analytics links change to '%' so stop working, help?

    When exporting from InDesign to an interactive PDF document the  '&' and '?' in my Google Analytics links change to '%' so stop working? Does anyone know how to stop this happening? Thanks in advance

  • Export to Spreadsheet

    I am having trouble getting all my form fields to export to a spreadsheet. I have radio buttons for the user to answer "Yes" or "No" but the response does not export to the spreadsheet. Everything else seems to export correctly. I have checked the bi

  • How to import RSS feeds?

    Hello everyone.  I have OS 10.6.8 and Mail program v.4.5 I had to create a new mail account.  How can I import the RSS feeds from my old account?  I have a time machine backup.  I've tried replacing the plist but it doesn't work.  Thank you.  

  • 0MATERIAL_LKLS_HIER datasource and 0MAT_PLANT into 0IC_C03 cube

    Hi all, We would like use the 0IC_C03 Stock MVT infocube with 0MAT_PLANT  instead 0MATERIAL. On the other hand, we'll need the 0MATERIAL_LKLS_HIER datasource (class values). My question : Can we connect the 0MATERIAL_LKLS_HIER datasource to 0MAT_PLAN