Exception in thread "<ClientThread-Pool#1-ID:7074>" java.lang.OutOfMemoryError: Java heap space

74 views
Skip to first unread message

Wiem Rachman

unread,
Nov 30, 2014, 10:18:49 AM11/30/14
to quick...@googlegroups.com
    Hi I am using quick server 1.4.7, Tomcat 6.0 , SQL Server and handle more than 500 clients

    Sometime i got error like this
   

    Exception in thread "<ClientThread-Pool#1-ID:7074>" java.lang.OutOfMemoryError: Java heap space.   

    So I reststart the windows to resolve it. after that the application running well until now (more than 3 months)

    I suspect the error generated by ClientPol.java like below

  public synchronized void addClient(Runnable r, boolean keepObjOnFail)
            throws NoSuchElementException {
  clients.add(r);
        ClientThread ct = null;
        try {
            ct = (ClientThread)pool.borrowObject(); // call makeQSObjectPool
                                                                // di borrowObject(
            if(ct.isReady()==false) {               // call ClientThread.java isReady
                //ct.start();
                wait(500); //timeout was just in case :-)
                //Thread.yield();
            } else {
                synchronized(ct) {    // di call oleh QS.java
                    ct.notify();
                }
            }
        } catch(NoSuchElementException e) {
            logger.info("No free threads: "+e);
            if(keepObjOnFail==false)
                clients.remove(r);
            throw e;

is the error "Exception in thread "<ClientThread-Pool#1-ID:7074>" java.lang.OutOfMemoryError: Java heap space" generated by catch(NoSuchElementException e) { throw e?

what's the cause of java.lang.OutOfMemoryError: Java heap space?

is cause of :

1. Spikes in usage/data volume.

2. Memory leaks.

3. Somethingwrong in Windows activity like upgrdae patch/anti virus etc


and how to resolve it?


this complete log

Exception in thread "<ClientThread-Pool#1-ID:5840>" java.lang.OutOfMemoryError: Java heap space

Exception in thread "<ClientThread-Pool#1-ID:6260>" java.lang.OutOfMemoryError: Java heap space

Exception in thread "DefaultQuartzScheduler_QuartzSchedulerThread" java.lang.OutOfMemoryError: Java heap space

Exception in thread "<ClientThread-Pool#1-ID:6000>" Exception in thread "<ClientThread-Pool#1-ID:7074>" java.lang.OutOfMemoryError: Java heap space

java.lang.OutOfMemoryError: Java heap space

Exception in thread "<ClientThread-Pool#1-ID:7377>" java.lang.OutOfMemoryError: Java heap space

Exception in thread "weblogic.transaction.TxTimer: '1'" Exception in thread "<ClientThread-Pool#1-ID:6962>" java.lang.OutOfMemoryError: Java heap space

java.lang.OutOfMemoryError: Java heap space

OutOfMemoryError occured on server

OutOfMemoryError occured on server

java.sql.SQLException: I/O Error: Connection reset by peer: socket write error

Exception in thread "<ClientThread-Pool#1-ID:7393>"    at net.sourceforge.jtds.jdbc.TdsCore.login(TdsCore.java:615)

java.lang.OutOfMemoryError: Java heap space

OutOfMemoryError occured on server

OutOfMemoryError occured on server

Exception in thread "<ClientThread-Pool#1-ID:6698>" java.lang.OutOfMemoryError: Java heap space

Exception in thread "<ClientThread-Pool#1-ID:7326>" java.lang.OutOfMemoryError: Java heap space

Exception in thread "<ClientThread-Pool#1-ID:6044>" java.lang.OutOfMemoryError: Java heap space

Exception in thread "<ClientThread-Pool#1-ID:6889>" Exception in thread "<ClientThread-Pool#1-ID:7348>" java.lang.OutOfMemoryError: Java heap space

java.lang.OutOfMemoryError: Java heap space

Exception in thread "<ClientThread-Pool#1-ID:7265>" java.lang.OutOfMemoryError: Java heap space

Exception in thread "<ClientThread-Pool#1-ID:6808>" java.lang.OutOfMemoryError: Java heap space

Exception in thread "<ClientThread-Pool#1-ID:7139>" java.lang.OutOfMemoryError: Java heap space

Exception in thread "<ClientThread-Pool#1-ID:1855>" java.lang.OutOfMemoryError: Java heap space

Exception in thread "<ClientThread-Pool#1-ID:7331>" java.lang.OutOfMemoryError: Java heap space

Exception in thread "<ClientThread-Pool#1-ID:6198>" Exception in thread "<ClientThread-Pool#1-ID:7110>" Exception in thread "http-8080-11" java.lang.OutOfMemoryError: Java heap space

java.lang.OutOfMemoryError: Java heap space

Exception in thread "<ClientThread-Pool#1-ID:6985>" Exception in thread "<ClientThread-Pool#1-ID:7371>" Exception in thread "<ClientThread-Pool#1-ID:7375>" java.lang.OutOfMemoryError: Java heap space

java.lang.OutOfMemoryError: Java heap space

Exception in thread "http-8080-14" Exception in thread "<ClientThread-Pool#1-ID:7254>" java.lang.OutOfMemoryError: Java heap space

java.lang.OutOfMemoryError: Java heap space

Exception in thread "<ClientThread-Pool#1-ID:7041>" java.lang.OutOfMemoryError: Java heap space

Exception in thread "http-8080-27" java.lang.NullPointerException

                at java.util.concurrent.ConcurrentLinkedQueue.offer(ConcurrentLinkedQueue.java:190)

                at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler$1.offer(Http11Protocol.java:532)

                at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler$1.offer(Http11Protocol.java:549)

                at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:613)

                at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)

                at java.lang.Thread.run(Thread.java:619)

Exception in thread "http-8080-25" java.lang.NullPointerException

                at java.util.concurrent.ConcurrentLinkedQueue.offer(ConcurrentLinkedQueue.java:190)

                at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler$1.offer(Http11Protocol.java:532)

Exception in thread "<ClientThread-Pool#1-ID:6822>" Exception in thread "<ClientThread-Pool#1-ID:6048>" java.lang.OutOfMemoryError: Java heap space

Exception in thread "http-8080-20" java.lang.NullPointerException

                at java.util.concurrent.ConcurrentLinkedQueue.offer(ConcurrentLinkedQueue.java:190)

                at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler$1.offer(Http11Protocol.java:532)

                at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler$1.offer(Http11Protocol.java:549)

                at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:613)

                at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)

                at java.lang.Thread.run(Thread.java:619)

Exception in thread "<ClientThread-Pool#1-ID:6883>" java.lang.OutOfMemoryError: Java heap space

Exception in thread "<ClientThread-Pool#1-ID:6680>" java.lang.OutOfMemoryError: Java heap space


Thanks In Afdvance,

Wiem

Akshath

unread,
Dec 3, 2014, 11:53:00 AM12/3/14
to quick...@googlegroups.com
Do you have the following
- gc logs (if not do enable it)
- jmap output when you got OutOfMemory Error ?

jmap output should clearly tell you which object is taking up your memory.

Also do share the JVM flags used to start the server ?
Reply all
Reply to author
Forward
0 new messages