Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to properly end a DB session? #7370

Closed
jackzhp opened this issue Apr 26, 2017 · 0 comments
Closed

How to properly end a DB session? #7370

jackzhp opened this issue Apr 26, 2017 · 0 comments
Assignees

Comments

@jackzhp
Copy link

jackzhp commented Apr 26, 2017

OrientDB Version: 2.2.18

Java Version: 1.8.0_131

OS: tomcat

Expected behavior

  when tomcat quits, In contextDestroyed, I call 
      pool.close();
  when tomcat starts, in contextInitialized, I call
       pool = new OPartitionedDatabasePool(url_DB, user_DB, password_DB);

I guess everything should quit properly, but I saw

Actual behavior

26-Apr-2017 09:43:16.618 WARNING [main] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [cS] appears to have started a thread named [Timer-0] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
java.lang.Object.wait(Native Method)
java.util.TimerThread.mainLoop(Timer.java:552)
java.util.TimerThread.run(Timer.java:505)
26-Apr-2017 09:43:16.619 WARNING [main] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [cS] appears to have started a thread named [OrientDB <- Asynch Client (/192.168.1.18:2424)] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
java.net.SocketInputStream.socketRead0(Native Method)
java.net.SocketInputStream.socketRead(SocketInputStream.java:116)
java.net.SocketInputStream.read(SocketInputStream.java:171)
java.net.SocketInputStream.read(SocketInputStream.java:141)
java.io.BufferedInputStream.fill(BufferedInputStream.java:246)
java.io.BufferedInputStream.read(BufferedInputStream.java:265)
java.io.DataInputStream.readByte(DataInputStream.java:265)
com.orientechnologies.orient.enterprise.channel.binary.OChannelBinary.readByte(OChannelBinary.java:68)
com.orientechnologies.orient.client.binary.OChannelBinaryAsynchClient.beginResponse(OChannelBinaryAsynchClient.java:194)
com.orientechnologies.orient.client.binary.OAsynchChannelServiceThread.execute(OAsynchChannelServiceThread.java:55)
com.orientechnologies.common.thread.OSoftThread.run(OSoftThread.java:77)

Steps to reproduce

not needed.

Anyone has any idea about how to quit properly? thanks.

@jackzhp jackzhp changed the title How to properly end of DB session? How to properly end a DB session? Apr 26, 2017
@tglman tglman added this to the 2.2.x (next hotfix) milestone Jun 7, 2017
diegomtassis pushed a commit to CompartAG/orientdb that referenced this issue Jul 7, 2017
@laa laa closed this as completed Aug 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants