{"action":"created","issue":{"url":"https://api.github.com/repos/orientechnologies/orientdb/issues/4678","labels_url":"https://api.github.com/repos/orientechnologies/orientdb/issues/4678/labels{/name}","comments_url":"https://api.github.com/repos/orientechnologies/orientdb/issues/4678/comments","events_url":"https://api.github.com/repos/orientechnologies/orientdb/issues/4678/events","html_url":"https://github.com/orientechnologies/orientdb/issues/4678","id":97947160,"number":4678,"title":"Threads in park mode consuming CPU","user":{"login":"thiagopm","id":850424,"avatar_url":"https://avatars.githubusercontent.com/u/850424?v=3","gravatar_id":"","url":"https://api.github.com/users/thiagopm","html_url":"https://github.com/thiagopm","followers_url":"https://api.github.com/users/thiagopm/followers","following_url":"https://api.github.com/users/thiagopm/following{/other_user}","gists_url":"https://api.github.com/users/thiagopm/gists{/gist_id}","starred_url":"https://api.github.com/users/thiagopm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thiagopm/subscriptions","organizations_url":"https://api.github.com/users/thiagopm/orgs","repos_url":"https://api.github.com/users/thiagopm/repos","events_url":"https://api.github.com/users/thiagopm/events{/privacy}","received_events_url":"https://api.github.com/users/thiagopm/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"tglman","id":424369,"avatar_url":"https://avatars.githubusercontent.com/u/424369?v=3","gravatar_id":"","url":"https://api.github.com/users/tglman","html_url":"https://github.com/tglman","followers_url":"https://api.github.com/users/tglman/followers","following_url":"https://api.github.com/users/tglman/following{/other_user}","gists_url":"https://api.github.com/users/tglman/gists{/gist_id}","starred_url":"https://api.github.com/users/tglman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tglman/subscriptions","organizations_url":"https://api.github.com/users/tglman/orgs","repos_url":"https://api.github.com/users/tglman/repos","events_url":"https://api.github.com/users/tglman/events{/privacy}","received_events_url":"https://api.github.com/users/tglman/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/orientechnologies/orientdb/milestones/63","html_url":"https://github.com/orientechnologies/orientdb/milestones/2.0.16","labels_url":"https://api.github.com/repos/orientechnologies/orientdb/milestones/63/labels","id":1275684,"number":63,"title":"2.0.16","description":null,"creator":{"login":"lvca","id":312606,"avatar_url":"https://avatars.githubusercontent.com/u/312606?v=3","gravatar_id":"","url":"https://api.github.com/users/lvca","html_url":"https://github.com/lvca","followers_url":"https://api.github.com/users/lvca/followers","following_url":"https://api.github.com/users/lvca/following{/other_user}","gists_url":"https://api.github.com/users/lvca/gists{/gist_id}","starred_url":"https://api.github.com/users/lvca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lvca/subscriptions","organizations_url":"https://api.github.com/users/lvca/orgs","repos_url":"https://api.github.com/users/lvca/repos","events_url":"https://api.github.com/users/lvca/events{/privacy}","received_events_url":"https://api.github.com/users/lvca/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":2,"state":"open","created_at":"2015-08-27T11:35:56Z","updated_at":"2015-08-27T13:38:12Z","due_on":null,"closed_at":null},"comments":10,"created_at":"2015-07-29T14:20:49Z","updated_at":"2015-08-27T16:06:37Z","closed_at":"2015-08-27T10:42:07Z","body":"Hi,\r\n\r\nWe just start to get this error below.\r\n\r\nin the OrientDB server:\r\n<code>\r\njava.net.SocketException: Socket closed\r\n\tat java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:116)\r\n\tat java.net.SocketOutputStream.write(SocketOutputStream.java:153)\r\n\tat java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:82)\r\n\tat java.io.BufferedOutputStream.flush(BufferedOutputStream.java:140)\r\n\tat java.io.DataOutputStream.flush(DataOutputStream.java:123)\r\n\tat com.orientechnologies.orient.enterprise.channel.binary.OChannelBinary.flush(OChannelBinary.java:387)\r\n\tat com.orientechnologies.orient.server.network.protocol.binary.OBinaryNetworkProtocolAbstract.handleConnectionError(OBinaryNetworkProtocolAbstract.java:397)\r\n\tat com.orientechnologies.orient.server.network.protocol.binary.ONetworkProtocolBinary.handleConnectionError(ONetworkProtocolBinary.java:1811)\r\n\tat com.orientechnologies.orient.server.network.protocol.binary.OBinaryNetworkProtocolAbstract.execute(OBinaryNetworkProtocolAbstract.java:212)\r\n\tat com.orientechnologies.common.thread.OSoftThread.run(OSoftThread.java:71)\r\nError during closing of output stream\r\njava.net.SocketException: Socket closed\r\n\tat java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:116)\r\n\tat java.net.SocketOutputStream.write(SocketOutputStream.java:153)\r\n\tat java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:82)\r\n\tat java.io.BufferedOutputStream.flush(BufferedOutputStream.java:140)\r\n\tat java.io.DataOutputStream.flush(DataOutputStream.java:123)\r\n\tat java.io.FilterOutputStream.close(FilterOutputStream.java:158)\r\n\tat com.orientechnologies.orient.enterprise.channel.binary.OChannelBinary.close(OChannelBinary.java:406)\r\n\tat com.orientechnologies.orient.server.network.protocol.binary.OBinaryNetworkProtocolAbstract.shutdown(OBinaryNetworkProtocolAbstract.java:109)\r\n\tat com.orientechnologies.orient.server.network.protocol.binary.ONetworkProtocolBinary.shutdown(ONetworkProtocolBinary.java:149)\r\n\tat com.orientechnologies.common.thread.OSoftThread.run(OSoftThread.java:79)\r\n\tSuppressed: java.net.SocketException: Socket closed\r\n\t\tat java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:116)\r\n\t\tat java.net.SocketOutputStream.write(SocketOutputStream.java:153)\r\n\t\tat java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:82)\r\n\t\tat java.io.BufferedOutputStream.flush(BufferedOutputStream.java:140)\r\n\t\tat java.io.FilterOutputStream.close(FilterOutputStream.java:158)\r\n\t\tat java.io.FilterOutputStream.close(FilterOutputStream.java:159)\r\n\t\t... 4 more\r\n</code>\r\n\r\nin the driver (client side):\r\n<code>\r\nCannot write to a BufferedStream while the read buffer is not empty if the underlying stream is not seekable. Ensure that the stream underlying this BufferedStream can seek or avoid interleaving read and write operations on this BufferedStream.\r\n   at Orient.Client.Protocol.Connection.Send(Byte[] rawData)\r\n   at Orient.Client.Protocol.Connection.ExecuteOperationInternal(IOperation operation)\r\n   at Orient.Client.Protocol.Connection.ExecuteOperation(IOperation operation)\r\n   at Orient.Client.ODatabase.Query(String sql, String fetchPlan)\r\n   at ILang.OrientDB.ILangGraphOperation.RemoveEdge(Int32 userOrganizationId, Int32 classDisciplineId, EdgeType edge)\r\n   at ILang.Objects.Queue.Processor.ClassDisciplineStudentProcessor.ProcessQueueMessage(Object queueMessage)\r\n</code>\r\n\r\n\r\nThis problem happens when we turn on our Sync service, it process high number of DB write. \r\nAfter we stops the service, we stop to get this error, but seems that the threads keeps in a loop, because CPU and number of threads keeps high.\r\n\r\nHere is the heap dump.\r\n\r\nhttps://s3.amazonaws.com/a-several/heapdump-1438122505121.7z\r\n\r\nThanks"},"comment":{"url":"https://api.github.com/repos/orientechnologies/orientdb/issues/comments/135479594","html_url":"https://github.com/orientechnologies/orientdb/issues/4678#issuecomment-135479594","issue_url":"https://api.github.com/repos/orientechnologies/orientdb/issues/4678","id":135479594,"user":{"login":"thiagopm","id":850424,"avatar_url":"https://avatars.githubusercontent.com/u/850424?v=3","gravatar_id":"","url":"https://api.github.com/users/thiagopm","html_url":"https://github.com/thiagopm","followers_url":"https://api.github.com/users/thiagopm/followers","following_url":"https://api.github.com/users/thiagopm/following{/other_user}","gists_url":"https://api.github.com/users/thiagopm/gists{/gist_id}","starred_url":"https://api.github.com/users/thiagopm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thiagopm/subscriptions","organizations_url":"https://api.github.com/users/thiagopm/orgs","repos_url":"https://api.github.com/users/thiagopm/repos","events_url":"https://api.github.com/users/thiagopm/events{/privacy}","received_events_url":"https://api.github.com/users/thiagopm/received_events","type":"User","site_admin":false},"created_at":"2015-08-27T16:06:37Z","updated_at":"2015-08-27T16:06:37Z","body":"Hi @tglman, \r\n\r\nWe are using version 2.1 SNAPSHOT of july, 28. I think this is almost the 2.1 GA.\r\n\r\nI can install 2.1 GA. Are you sure it's corrected in this version?\r\n\r\nWhich version should I use?\r\n\r\nthanks,\r\nThiago"}}