{"action":"created","issue":{"url":"https://api.github.com/repos/orientechnologies/orientdb/issues/6244","repository_url":"https://api.github.com/repos/orientechnologies/orientdb","labels_url":"https://api.github.com/repos/orientechnologies/orientdb/issues/6244/labels{/name}","comments_url":"https://api.github.com/repos/orientechnologies/orientdb/issues/6244/comments","events_url":"https://api.github.com/repos/orientechnologies/orientdb/issues/6244/events","html_url":"https://github.com/orientechnologies/orientdb/issues/6244","id":158143475,"number":6244,"title":"Can't get rid of MaxDirectMemorySize warning","user":{"login":"vlasni","id":19346364,"avatar_url":"https://avatars.githubusercontent.com/u/19346364?v=3","gravatar_id":"","url":"https://api.github.com/users/vlasni","html_url":"https://github.com/vlasni","followers_url":"https://api.github.com/users/vlasni/followers","following_url":"https://api.github.com/users/vlasni/following{/other_user}","gists_url":"https://api.github.com/users/vlasni/gists{/gist_id}","starred_url":"https://api.github.com/users/vlasni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vlasni/subscriptions","organizations_url":"https://api.github.com/users/vlasni/orgs","repos_url":"https://api.github.com/users/vlasni/repos","events_url":"https://api.github.com/users/vlasni/events{/privacy}","received_events_url":"https://api.github.com/users/vlasni/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/orientechnologies/orientdb/labels/bug","name":"bug","color":"ededed"},{"url":"https://api.github.com/repos/orientechnologies/orientdb/labels/storage%20team","name":"storage team","color":"c5def5"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/orientechnologies/orientdb/milestones/86","html_url":"https://github.com/orientechnologies/orientdb/milestones/2.2.1","labels_url":"https://api.github.com/repos/orientechnologies/orientdb/milestones/86/labels","id":1755770,"number":86,"title":"2.2.1","description":"","creator":{"login":"maggiolo00","id":98812,"avatar_url":"https://avatars.githubusercontent.com/u/98812?v=3","gravatar_id":"","url":"https://api.github.com/users/maggiolo00","html_url":"https://github.com/maggiolo00","followers_url":"https://api.github.com/users/maggiolo00/followers","following_url":"https://api.github.com/users/maggiolo00/following{/other_user}","gists_url":"https://api.github.com/users/maggiolo00/gists{/gist_id}","starred_url":"https://api.github.com/users/maggiolo00/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maggiolo00/subscriptions","organizations_url":"https://api.github.com/users/maggiolo00/orgs","repos_url":"https://api.github.com/users/maggiolo00/repos","events_url":"https://api.github.com/users/maggiolo00/events{/privacy}","received_events_url":"https://api.github.com/users/maggiolo00/received_events","type":"User","site_admin":false},"open_issues":102,"closed_issues":38,"state":"open","created_at":"2016-05-09T15:46:38Z","updated_at":"2016-06-02T15:12:49Z","due_on":"2016-05-30T22:00:00Z","closed_at":null},"comments":1,"created_at":"2016-06-02T13:41:13Z","updated_at":"2016-06-02T16:22:43Z","closed_at":null,"body":"# This started to happen with community v2.2.0\r\nWhen deploying web app to tomcat 8, I started to see the warnings below, even when the values are apparently correctly set in configuration:\r\n```\r\n02-Jun-2016 10:29:36.370 INFO [localhost-startStop-3] com.orientechnologies.common.log.OLogManager.log OrientDB auto-config DISKCACHE=1,877MB (heap=1,877MB direct=1,877MB os=7,982MB), assuming maximum direct memory size equals to maximum JVM heap size\r\n02-Jun-2016 10:29:36.399 WARNING [localhost-startStop-3] com.orientechnologies.common.log.OLogManager.log MaxDirectMemorySize JVM option is not set or has invalid value, that may cause out of memory errors. Please set the -XX:MaxDirectMemorySize=7982m option when you start the JVM.\r\n02-Jun-2016 10:29:36.402 WARNING [localhost-startStop-3] com.orientechnologies.common.log.OLogManager.log MBean with name com.orientechnologies.common.directmemory:type=OByteBufferPoolMXBean has already registered. Probably your system was not shutdown correctly or you have several running applications which use OrientDB engine inside\r\n02-Jun-2016 10:29:36.403 WARNING [localhost-startStop-3] com.orientechnologies.common.log.OLogManager.log MaxDirectMemorySize JVM option is not set or has invalid value, that may cause out of memory errors. Please set the -XX:MaxDirectMemorySize=7982m option when you start the JVM.\r\n02-Jun-2016 10:29:36.416 WARNING [localhost-startStop-3] com.orientechnologies.common.log.OLogManager.log MBean with name com.orientechnologies.common.directmemory:type=OByteBufferPoolMXBean has already registered. Probably your system was not shutdown correctly or you have several running applications which use OrientDB engine inside\r\n02-Jun-2016 10:29:36.475 INFO [localhost-startStop-3] com.orientechnologies.common.log.OLogManager.log Registered the new available server 'dev.vlasni.com:2424'\r\n```\r\n\r\n\r\n## server.sh\r\n`JAVA_OPTS_SCRIPT=\"-Djna.nosys=true -XX:+HeapDumpOnOutOfMemoryError -XX:MaxDirectMemorySize=512g -Djava.awt.headless=true -Dfile.encoding=UTF8 -Drhino.opt.level=9 -XX:+AggressiveOpts -XX:CompileThreshold=200\"\r\n`\r\n`ORIENTDB_OPTS_MEMORY=\"-Xms768m -Xmx768m\"`\r\n`MAXDISKCACHE=\"-Dstorage.diskCache.bufferSize=5376\"`\r\n\r\nIs there something I am missing in configuration that produces these warnings? \r\nAny help would be greatly appreciated.\r\n\r\n### Runninng Mode\r\n- [ ] Remote\r\n\r\n### OrientDB Version\r\n- [ ] v2.2.0\r\n\r\n### Operating System\r\n- [ ] Linux\r\n\r\n### Java Version\r\n- [ ] 8\r\n\r\nThanks"},"comment":{"url":"https://api.github.com/repos/orientechnologies/orientdb/issues/comments/223344559","html_url":"https://github.com/orientechnologies/orientdb/issues/6244#issuecomment-223344559","issue_url":"https://api.github.com/repos/orientechnologies/orientdb/issues/6244","id":223344559,"user":{"login":"taburet","id":1912884,"avatar_url":"https://avatars.githubusercontent.com/u/1912884?v=3","gravatar_id":"","url":"https://api.github.com/users/taburet","html_url":"https://github.com/taburet","followers_url":"https://api.github.com/users/taburet/followers","following_url":"https://api.github.com/users/taburet/following{/other_user}","gists_url":"https://api.github.com/users/taburet/gists{/gist_id}","starred_url":"https://api.github.com/users/taburet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/taburet/subscriptions","organizations_url":"https://api.github.com/users/taburet/orgs","repos_url":"https://api.github.com/users/taburet/repos","events_url":"https://api.github.com/users/taburet/events{/privacy}","received_events_url":"https://api.github.com/users/taburet/received_events","type":"User","site_admin":false},"created_at":"2016-06-02T16:22:43Z","updated_at":"2016-06-02T16:22:43Z","body":"Please attach to the JVM instance using YourKit or VisualVM and inspect the actual JVM arguments. I suspect they some how got lost during JVM startup."}}
{"actor":{"display_login":"taburet"}}