Questions asked by dieuphhttps://answers.axonivy.com/questions/asked-by/873/dieuph/?type=rssQuestions asked by <a href="/users/873/dieuph" >dieuph</a>enThu, 26 Sep 2019 04:23:20 -0400Configure a separate log file with customizing file name patternhttps://answers.axonivy.com/questions/4029/configure-a-separate-log-file-with-customizing-file-name-pattern<p>Based on the answer from:</p> <p><a href="https://answers.axonivy.com/questions/1852/how-can-i-configure-a-separate-log-file-for-the-runtime-log">https://answers.axonivy.com/questions/1852/how-can-i-configure-a-separate-log-file-for-the-runtime-log</a></p> <p>And:</p> <p><a href="https://stackoverflow.com/questions/5117758/configuring-rollingfileappender-in-log4j">https://stackoverflow.com/questions/5117758/configuring-rollingfileappender-in-log4j</a></p> <p>I see we could customize the file name of the separated log file by using <strong>org.apache.log4j.rolling.RollingFileAppender</strong> instead of <strong>org.apache.log4j.RollingFileAppender</strong> Then I try to add log4j-extras (<a href="https://mvnrepository.com/artifact/log4j/apache-log4j-extras/1.2.17)">https://mvnrepository.com/artifact/log4j/apache-log4j-extras/1.2.17)</a> to <strong>{engine_dir}/plugins</strong>. But it doesn't work.</p> <p>Do I miss anything?</p>dieuphThu, 26 Sep 2019 04:23:20 -0400https://answers.axonivy.com/questions/4029/configure-a-separate-log-file-with-customizing-file-name-patternlog4jivyExecution of recreate index ElasticSearch failedhttps://answers.axonivy.com/questions/3934/execution-of-recreate-index-elasticsearch-failed<p>Hi,</p> <p>Due I trigger recreate index by Admin UI, that let an error as below</p> <pre><code>13:20:07.134 ERROR [ch.ivyteam.ivy.job.internal] [ivy immediate job pool-thread-3] [] Execution of job BusinessDataSearchIndexRecreator failed java.lang.OutOfMemoryError: Requested array size exceeds VM limit at java.lang.StringCoding.encode(StringCoding.java:350) at java.lang.String.getBytes(String.java:941) at org.apache.http.entity.StringEntity.&lt;init&gt;(StringEntity.java:70) at org.apache.http.client.entity.EntityBuilder.build(EntityBuilder.java:314) at io.searchbox.client.http.JestHttpClient.constructHttpMethod(JestHttpClient.java:184) at io.searchbox.client.http.JestHttpClient.prepareRequest(JestHttpClient.java:115) at io.searchbox.client.http.JestHttpClient.execute(JestHttpClient.java:64) at io.searchbox.client.http.JestHttpClient.execute(JestHttpClient.java:60) at ch.ivyteam.ivy.business.data.store.search.internal.elasticsearch.JestOperation.tryToExecute(JestOperation.java:45) at ch.ivyteam.ivy.business.data.store.search.internal.elasticsearch.JestOperation.execute(JestOperation.java:36) at ch.ivyteam.ivy.business.data.store.search.internal.elasticsearch.JestIndexSynchronizer.execute(JestIndexSynchronizer.java:151) at ch.ivyteam.ivy.business.data.store.search.internal.elasticsearch.JestIndexSynchronizer.addDocuments(JestIndexSynchronizer.java:42) at ch.ivyteam.ivy.business.data.store.search.internal.ElasticBusinessDataSearchIndex.addAll(ElasticBusinessDataSearchIndex.java:20) at ch.ivyteam.ivy.business.data.store.search.internal.BusinessDataSearchIndexRecreator.updateIndex(BusinessDataSearchIndexRecreator.java:70) at ch.ivyteam.ivy.business.data.store.search.internal.BusinessDataSearchIndexRecreator.readDataAndUpdateIndex(BusinessDataSearchIndexRecreator.java:52) at ch.ivyteam.ivy.business.data.store.search.internal.BusinessDataSearchIndexRecreator.recreateIndex(BusinessDataSearchIndexRecreator.java:34) at ch.ivyteam.ivy.business.data.store.search.internal.BusinessDataSearchIndecesRecreator.recreateIndeces(BusinessDataSearchIndecesRecreator.java:80) at ch.ivyteam.ivy.business.data.store.search.internal.BusinessDataSearchIndecesRecreator.execute(BusinessDataSearchIndecesRecreator.java:50) at ch.ivyteam.ivy.job.internal.JobManager$1.call(JobManager.java:382) at ch.ivyteam.ivy.job.internal.JobManager$1.call(JobManager.java:1) at ch.ivyteam.util.callable.ExecutionContextContainer$ContainerExecutionContext.call(ExecutionContextContainer.java:92) at ch.ivyteam.ivy.security.internal.SecurityManager.executeInContext_aroundBody0(SecurityManager.java:1362) at ch.ivyteam.ivy.security.internal.SecurityManager.executeInContext_aroundBody1$advice(SecurityManager.java:41) at ch.ivyteam.ivy.security.internal.SecurityManager.executeInContext(SecurityManager.java:1) at ch.ivyteam.util.callable.ExecutionContextContainer$ContainerExecutionContext.call(ExecutionContextContainer.java:88) at ch.ivyteam.util.callable.ExecutionContextContainer.executeInContext(ExecutionContextContainer.java:27) at ch.ivyteam.ivy.job.internal.JobManager.execute(JobManager.java:376) at ch.ivyteam.ivy.job.internal.Job.run(Job.java:56) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) </code></pre> <p>We use an external elasticsearch and the jvm.options is:</p> <pre><code>-XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiatingOccupancyOnly -XX:+DisableExplicitGC -XX:+AlwaysPreTouch -server -Xss1m -Djava.awt.headless=true -Dfile.encoding=UTF-8 -Djna.nosys=true -Djdk.io.permissionsUseCanonicalPath=true -Dio.netty.noUnsafe=true -Dio.netty.noKeySetOptimization=true -Dio.netty.recycler.maxCapacityPerThread=0 -Dlog4j.shutdownHookEnabled=false -Dlog4j2.disable.jmx=true -Dlog4j.skipJansi=true -XX:+HeapDumpOnOutOfMemoryError -Xmx6144m -Xms6144m </code></pre> <p>Could anyone give us some hints?</p>dieuphWed, 28 Aug 2019 07:50:53 -0400https://answers.axonivy.com/questions/3934/execution-of-recreate-index-elasticsearch-failedelasticsearchHow can I enable HTTP/2.0 support for Ivy Enginehttps://answers.axonivy.com/questions/3462/how-can-i-enable-http-2-0-support-for-ivy-engine<p>Hi all, I try to improve the application performance by using HTTP/2.0. Currently, I'm using Ivy 7 and Nginx 1.10.3.</p> <p>I make some configuration following <a href="https://dev.to/grigorkh/how-to-set-up-nginx-with-http2-support-2mgb">https://dev.to/grigorkh/how-to-set-up-nginx-with-http2-support-2mgb</a> , but seems like it's not as my expectation.</p> <p>Does anyone try to enable HTTP/2.0 for Ivy Engine before?</p> <p>Thanks.</p>dieuphMon, 01 Oct 2018 05:53:38 -0400https://answers.axonivy.com/questions/3462/how-can-i-enable-http-2-0-support-for-ivy-engineivy7xhttpivyserver