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