{"id":15525,"date":"2018-06-12T08:37:06","date_gmt":"2018-06-12T15:37:06","guid":{"rendered":"https:\/\/ephesoft.com\/docs\/?p=15525"},"modified":"2022-04-01T09:59:06","modified_gmt":"2022-04-01T16:59:06","slug":"kb00022543-java-lang-outofmemoryerror-compressed-class-space","status":"publish","type":"post","link":"https:\/\/ephesoft.com\/docs\/kb00022543-java-lang-outofmemoryerror-compressed-class-space\/","title":{"rendered":"java.lang.OutOfMemoryError: Compressed class space"},"content":{"rendered":"

Issue Description:<\/strong><\/p>\n

In case you have some custom scripts in place and that is making some web service calls then you may observe an issue where in the logs you may see Exception\u00a0\u00a0java.lang.OutOfMemoryError: Compressed class space and the outcome of that can be Ephesoft UI performance getting impacted i.e. extreme slowness on the User Interface where it takes a very long time to perform any operation or even you are viewed with the blank WEB UI screen.<\/p>\n

 <\/p>\n

Root Cause:<\/strong>
\nThe issue may be due to this custom script in place which is making web service calls due to which if you are observing\u00a0 java.lang.OutOfMemoryError: Compressed class space <\/strong>exception in the logs.\u00a0<\/span>
\nSame is a known issue in Java8<\/p>\n

Reference\u00a0https:\/\/stackoverflow.com\/questions\/33255578\/old-jaxb-and-jdk8-metaspace-outofmemory-issue<\/a>.<\/span>\u00a0\u00a0<\/span><\/p>\n

Solution:\u00a0<\/b>
\nTo resolve the issue please add a tomcat parameter\u00a0-Dcom.sun.xml.bind.v2.bytecode.ClassTailor.noOptimize=true<\/strong>\u00a0which handles this OutOfMemeoryError.<\/span><\/p>\n

a. Go to Ephesoft -> JavaAppServer -> bin folder
\nb. Open EphesoftTransactService go to Java Tab and in JavaOptionSection add -Dcom.sun.xml.bind.v2.bytecode.ClassTailor.noOptimize=true (at the end)
\nc. Also if the issue occurs again we need to make sure that we have heap dump available with us to analyse the issue so add below as well in Java Options and make sure you are giving correct path where Heap Dump needs to be created
\n-XX:+HeapDumpOnOutOfMemoryError
\n-XX:HeapDumpPath=c:\\\\path\\to\\HDFile
\nd.Restart the Ephesoft Service\u00a0<\/span><\/p>\n

 <\/p>\n

\"\"<\/a><\/p>\n

 <\/p>\n

In case the above doesn’t work then kindly go ahead and open the ticket at tickets@ephesoft.com and provide us with the INFO level logs and Heap Dump.<\/p>\n","protected":false},"excerpt":{"rendered":"

Issue Description: In case you have some custom scripts in place and that is making some web service calls then […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12343,12365],"tags":[1349,1430,150],"yoast_head":"\njava.lang.OutOfMemoryError: Compressed class space | Ephesoft Docs<\/title>\n<meta name=\"robots\" content=\"noindex, follow\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"java.lang.OutOfMemoryError: Compressed class space\" \/>\n<meta property=\"og:description\" content=\"Issue Description: In case you have some custom scripts in place and that is making some web service calls then […]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/ephesoft.com\/docs\/kb00022543-java-lang-outofmemoryerror-compressed-class-space\/\" \/>\n<meta property=\"og:site_name\" content=\"Ephesoft Docs\" \/>\n<meta property=\"article:published_time\" content=\"2018-06-12T15:37:06+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-04-01T16:59:06+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/ephesoft.com\/docs\/wp-content\/uploads\/2018\/06\/11.png\" \/>\n<meta name=\"author\" content=\"ephesoftadmin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@philbigleap\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"ephesoftadmin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/ephesoft.com\/docs\/kb00022543-java-lang-outofmemoryerror-compressed-class-space\/\",\"url\":\"https:\/\/ephesoft.com\/docs\/kb00022543-java-lang-outofmemoryerror-compressed-class-space\/\",\"name\":\"java.lang.OutOfMemoryError: Compressed class space | Ephesoft Docs\",\"isPartOf\":{\"@id\":\"https:\/\/ephesoft.com\/docs\/#website\"},\"datePublished\":\"2018-06-12T15:37:06+00:00\",\"dateModified\":\"2022-04-01T16:59:06+00:00\",\"author\":{\"@id\":\"https:\/\/ephesoft.com\/docs\/#\/schema\/person\/f6870520017fe62f92eecf86e6974339\"},\"breadcrumb\":{\"@id\":\"https:\/\/ephesoft.com\/docs\/kb00022543-java-lang-outofmemoryerror-compressed-class-space\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/ephesoft.com\/docs\/kb00022543-java-lang-outofmemoryerror-compressed-class-space\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/ephesoft.com\/docs\/kb00022543-java-lang-outofmemoryerror-compressed-class-space\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/ephesoft.com\/docs\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"java.lang.OutOfMemoryError: Compressed class space\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/ephesoft.com\/docs\/#website\",\"url\":\"https:\/\/ephesoft.com\/docs\/\",\"name\":\"Ephesoft Docs\",\"description\":\"Intelligent Document Processing Made Easy\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/ephesoft.com\/docs\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/ephesoft.com\/docs\/#\/schema\/person\/f6870520017fe62f92eecf86e6974339\",\"name\":\"ephesoftadmin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/ephesoft.com\/docs\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/82b86e45639b5940e8d71b0f251ebe57?s=96&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/82b86e45639b5940e8d71b0f251ebe57?s=96&r=g\",\"caption\":\"ephesoftadmin\"},\"sameAs\":[\"https:\/\/twitter.com\/philbigleap\"]}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"java.lang.OutOfMemoryError: Compressed class space | Ephesoft Docs","robots":{"index":"noindex","follow":"follow"},"og_locale":"en_US","og_type":"article","og_title":"java.lang.OutOfMemoryError: Compressed class space","og_description":"Issue Description: In case you have some custom scripts in place and that is making some web service calls then […]","og_url":"https:\/\/ephesoft.com\/docs\/kb00022543-java-lang-outofmemoryerror-compressed-class-space\/","og_site_name":"Ephesoft Docs","article_published_time":"2018-06-12T15:37:06+00:00","article_modified_time":"2022-04-01T16:59:06+00:00","og_image":[{"url":"https:\/\/ephesoft.com\/docs\/wp-content\/uploads\/2018\/06\/11.png"}],"author":"ephesoftadmin","twitter_card":"summary_large_image","twitter_creator":"@philbigleap","twitter_misc":{"Written by":"ephesoftadmin","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/ephesoft.com\/docs\/kb00022543-java-lang-outofmemoryerror-compressed-class-space\/","url":"https:\/\/ephesoft.com\/docs\/kb00022543-java-lang-outofmemoryerror-compressed-class-space\/","name":"java.lang.OutOfMemoryError: Compressed class space | Ephesoft Docs","isPartOf":{"@id":"https:\/\/ephesoft.com\/docs\/#website"},"datePublished":"2018-06-12T15:37:06+00:00","dateModified":"2022-04-01T16:59:06+00:00","author":{"@id":"https:\/\/ephesoft.com\/docs\/#\/schema\/person\/f6870520017fe62f92eecf86e6974339"},"breadcrumb":{"@id":"https:\/\/ephesoft.com\/docs\/kb00022543-java-lang-outofmemoryerror-compressed-class-space\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/ephesoft.com\/docs\/kb00022543-java-lang-outofmemoryerror-compressed-class-space\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/ephesoft.com\/docs\/kb00022543-java-lang-outofmemoryerror-compressed-class-space\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/ephesoft.com\/docs\/"},{"@type":"ListItem","position":2,"name":"java.lang.OutOfMemoryError: Compressed class space"}]},{"@type":"WebSite","@id":"https:\/\/ephesoft.com\/docs\/#website","url":"https:\/\/ephesoft.com\/docs\/","name":"Ephesoft Docs","description":"Intelligent Document Processing Made Easy","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/ephesoft.com\/docs\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/ephesoft.com\/docs\/#\/schema\/person\/f6870520017fe62f92eecf86e6974339","name":"ephesoftadmin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/ephesoft.com\/docs\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/82b86e45639b5940e8d71b0f251ebe57?s=96&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/82b86e45639b5940e8d71b0f251ebe57?s=96&r=g","caption":"ephesoftadmin"},"sameAs":["https:\/\/twitter.com\/philbigleap"]}]}},"_links":{"self":[{"href":"https:\/\/ephesoft.com\/docs\/wp-json\/wp\/v2\/posts\/15525"}],"collection":[{"href":"https:\/\/ephesoft.com\/docs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ephesoft.com\/docs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ephesoft.com\/docs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ephesoft.com\/docs\/wp-json\/wp\/v2\/comments?post=15525"}],"version-history":[{"count":1,"href":"https:\/\/ephesoft.com\/docs\/wp-json\/wp\/v2\/posts\/15525\/revisions"}],"predecessor-version":[{"id":50384,"href":"https:\/\/ephesoft.com\/docs\/wp-json\/wp\/v2\/posts\/15525\/revisions\/50384"}],"wp:attachment":[{"href":"https:\/\/ephesoft.com\/docs\/wp-json\/wp\/v2\/media?parent=15525"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ephesoft.com\/docs\/wp-json\/wp\/v2\/categories?post=15525"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ephesoft.com\/docs\/wp-json\/wp\/v2\/tags?post=15525"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}