<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Answers to: Deployment of iar is very slow</title><link>https://answers.axonivy.com/questions/4153/deployment-of-iar-is-very-slow</link><description>&lt;p&gt;Hi support team,&lt;/p&gt;
&lt;p&gt;Currently we faced with the problem of deployment process.
Whenever we deploy a .iar file to the engine (via adminUi, or ivy_deployment_tool), it will cost us a lot of time (about 5-10 minutes). &lt;/p&gt;
&lt;p&gt;But after we restart, the first time deployment is much much faster (take around 1 minutes).&lt;/p&gt;
&lt;p&gt;Is there any hint for me to improve the deployment without restart engine?&lt;/p&gt;
&lt;p&gt;The ivy version: &lt;strong&gt;Powered by Axon.ivy Engine 7.0.11.1903290958 Copyright © 2001-2019 AXON IVY AG&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Thank you!&lt;/p&gt;</description><atom:link href="https://answers.axonivy.com/questions/4153/deployment-of-iar-is-very-slow" rel="self"></atom:link><language>en</language><lastBuildDate>Wed, 29 Apr 2020 03:05:17 -0400</lastBuildDate><item><title>Comment by Reguel Wermelinger on khanh11166's answer</title><link>https://answers.axonivy.com/questions/4153/deployment-of-iar-is-very-slow#4543</link><description>&lt;p&gt;Also on linux you can opt in for an Oracle JDK 1.8 and you will be able to use flight recorder. &lt;/p&gt;
&lt;p&gt;I do not see something special. Seems like the normal annotation processing work is going on (to detect REST endpoints).&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Reguel Wermelinger</dc:creator><pubDate>Wed, 29 Apr 2020 03:05:17 -0400</pubDate><guid>https://answers.axonivy.com/questions/4153/deployment-of-iar-is-very-slow#4543</guid></item><item><title>Comment by khanh11166 on khanh11166's answer</title><link>https://answers.axonivy.com/questions/4153/deployment-of-iar-is-very-slow#4542</link><description>&lt;p&gt;Thanks for your recommend to use Ivy 8.0, it will be in the future near. &lt;/p&gt;
&lt;p&gt;I just finished recorded the CPU sampling (using Java VisualVM - can not use JMC because we are using OpenJDK and OpenJDK not include the FlightRecorder feature).
I see that on the slow engine, deployment process run some methods as the picture.
&lt;a href="https://prnt.sc/s792xy"&gt;https://prnt.sc/s792xy&lt;/a&gt; &lt;/p&gt;
&lt;p&gt;On the fast engine, the deployment process did'n run these methods.
Do you have some idea?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">khanh11166</dc:creator><pubDate>Tue, 28 Apr 2020 04:57:53 -0400</pubDate><guid>https://answers.axonivy.com/questions/4153/deployment-of-iar-is-very-slow#4542</guid></item><item><title>Comment by Reguel Wermelinger on khanh11166's answer</title><link>https://answers.axonivy.com/questions/4153/deployment-of-iar-is-very-slow#4536</link><description>&lt;p&gt;Thanks for the update &lt;a href="https://answers.axonivy.com/users/172/khanh11166"&gt;&lt;a href="https://answers.axonivy.com/users/172/khanh11166"&gt;@khanh11166&lt;/a&gt;&lt;/a&gt; &lt;/p&gt;
&lt;p&gt;The 'DeploymentTool' can of course be a cause of inefficient deployments. As stated before, it's not an official platform tool. Has not been written by members of the ivy-core and is therefore neither supported nor promoted to be used. So if this DeploymentTools is slow - we can't support you in fixing it. Even with the JMC records. &lt;/p&gt;
&lt;p&gt;What I still recommend is to migrate to Ivy 8.0 and benefit of all the new cool deployment features natively provided by the platform - without using any unsupported third parties.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Reguel Wermelinger</dc:creator><pubDate>Mon, 27 Apr 2020 02:29:33 -0400</pubDate><guid>https://answers.axonivy.com/questions/4153/deployment-of-iar-is-very-slow#4536</guid></item><item><title>Comment by khanh11166 on khanh11166's answer</title><link>https://answers.axonivy.com/questions/4153/deployment-of-iar-is-very-slow#4535</link><description>&lt;p&gt;Thanks Reguel,
I will record the JMC and analyze it. 
Btw, I also tried something below:
- Delete all data in iwa_businessdata and iwa.tasks -&amp;gt; still slow
- Check the deployment log, seem like the slow part is here: &lt;a href="https://prnt.sc/s6i2vz"&gt;https://prnt.sc/s6i2vz&lt;/a&gt; &lt;/p&gt;
&lt;p&gt;I will back to you later with the JMC recorded&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">khanh11166</dc:creator><pubDate>Mon, 27 Apr 2020 00:14:00 -0400</pubDate><guid>https://answers.axonivy.com/questions/4153/deployment-of-iar-is-very-slow#4535</guid></item><item><title>Comment by Reguel Wermelinger on khanh11166's answer</title><link>https://answers.axonivy.com/questions/4153/deployment-of-iar-is-very-slow#4527</link><description>&lt;p&gt;That sounds interesting. But I couldn't quickly see any IWA_BusinessData interactions when looking at our deployment process. &lt;/p&gt;
&lt;p&gt;However, it should be really simple to analyze what the java process is doing in these 10 mins:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;visual vm inspection: thread dumps, gc activity screenshots &lt;a href="https://developer.axonivy.com/doc/latest/engine-guide/monitoring/visualvm.html"&gt;https://developer.axonivy.com/doc/latest/engine-guide/monitoring/visualvm.html&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;or even better: flight recorder records taken during these deployments &lt;a href="https://docs.oracle.com/javacomponents/jmc-5-4/jfr-runtime-guide/about.htm#JFRUH172"&gt;https://docs.oracle.com/javacomponents/jmc-5-4/jfr-runtime-guide/about.htm#JFRUH172&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Reguel Wermelinger</dc:creator><pubDate>Wed, 22 Apr 2020 05:56:29 -0400</pubDate><guid>https://answers.axonivy.com/questions/4153/deployment-of-iar-is-very-slow#4527</guid></item><item><title>Answer by khanh11166</title><link>https://answers.axonivy.com/questions/4153/deployment-of-iar-is-very-slow/4526</link><description>&lt;p&gt;Hi Reguel,
We have changed to use linux for the engine. At the very clean engine (I meant after finish set it up and running), the deploy process is very fast (about maximum 3 minutes). But it keep slower and slower. Now, the same deploy process took around 10 minutes.&lt;/p&gt;
&lt;p&gt;We have another engine (running the same physical server with the one above), still have fast deploy.&lt;/p&gt;
&lt;p&gt;When I compared the 2 databases:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;The slow one: public.iwa_businessdata ~ 6000 records, about 6.5GB&lt;/li&gt;
&lt;li&gt;The fast one: public.iwa_businessdata ~ 300 records, about 150MB (because it use for just a small group of people)&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Question is: Is there any step in the deployment process of IVY engine related to public.iwa_businessdata table or other table? &lt;/p&gt;
&lt;p&gt;Thanks in advance,&lt;/p&gt;
&lt;p&gt;DK&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">khanh11166</dc:creator><pubDate>Wed, 22 Apr 2020 05:14:42 -0400</pubDate><guid>https://answers.axonivy.com/questions/4153/deployment-of-iar-is-very-slow/4526</guid></item><item><title>Comment by Reguel Wermelinger on Reguel Wermelinger's answer</title><link>https://answers.axonivy.com/questions/4153/deployment-of-iar-is-very-slow#4235</link><description>&lt;p&gt;a glimpse towards 8.0 LTS also shows that deployment scenarios supported by the platform were remarkably extended: &lt;a href="https://developer.axonivy.com/doc/8.0.0/engine-guide/administration/deployment.html"&gt;https://developer.axonivy.com/doc/8.0.0/engine-guide/administration/deployment.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;... one benefit is for instance, that IAR projects being deployed no longer need to be unzipped at all. They will run in packed format similar as JAR files do in the JRE.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Reguel Wermelinger</dc:creator><pubDate>Thu, 05 Dec 2019 03:03:03 -0500</pubDate><guid>https://answers.axonivy.com/questions/4153/deployment-of-iar-is-very-slow#4235</guid></item><item><title>Answer by Reguel Wermelinger</title><link>https://answers.axonivy.com/questions/4153/deployment-of-iar-is-very-slow/4234</link><description>&lt;p&gt;Since unzipping is slow I assume that your operating system slows it down: I'd look for involved virus scanners or a crypted filesystem. &lt;/p&gt;
&lt;p&gt;Nevertheless, I'd recommend to measure deployment also with a standard deployment approach which is actually supported by the ivy.core platform: &lt;a href="https://developer.axonivy.com/doc/7.0.latest/EngineGuideHtml/administration.html#administration-deployment-directory"&gt;https://developer.axonivy.com/doc/7.0.latest/EngineGuideHtml/administration.html#administration-deployment-directory&lt;/a&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Reguel Wermelinger</dc:creator><pubDate>Thu, 05 Dec 2019 02:51:28 -0500</pubDate><guid>https://answers.axonivy.com/questions/4153/deployment-of-iar-is-very-slow/4234</guid></item><item><title>Comment by Reguel Wermelinger on khanh11166's question</title><link>https://answers.axonivy.com/questions/4153/deployment-of-iar-is-very-slow#4233</link><description>&lt;p&gt;the screenshot shows that CPU is blocked while using a third-party for deploying ('soreco deployer'). 
this is not part of the axonivy.core and may has its own well known quality issues.
Moreover, its feature-set is covered natively by the platform. So I'd advise you to switch to a standard deployment approach: &lt;a href="https://developer.axonivy.com/doc/7.0.latest/EngineGuideHtml/administration.html#administration-deployment-directory"&gt;https://developer.axonivy.com/doc/7.0.latest/EngineGuideHtml/administration.html#administration-deployment-directory&lt;/a&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Reguel Wermelinger</dc:creator><pubDate>Thu, 05 Dec 2019 02:48:02 -0500</pubDate><guid>https://answers.axonivy.com/questions/4153/deployment-of-iar-is-very-slow#4233</guid></item><item><title>Comment by khanh11166 on khanh11166's question</title><link>https://answers.axonivy.com/questions/4153/deployment-of-iar-is-very-slow#4232</link><description>&lt;p&gt;I tried to record by JMC, and found out that
&lt;a href="https://prnt.sc/q6etrn"&gt;https://prnt.sc/q6etrn&lt;/a&gt;
when unzip the iar file, it took too long....&lt;/p&gt;
&lt;p&gt;more details: I'm, using window server&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">khanh11166</dc:creator><pubDate>Thu, 05 Dec 2019 00:00:58 -0500</pubDate><guid>https://answers.axonivy.com/questions/4153/deployment-of-iar-is-very-slow#4232</guid></item><item><title>Comment by Reguel Wermelinger on khanh11166's question</title><link>https://answers.axonivy.com/questions/4153/deployment-of-iar-is-very-slow#4225</link><description>&lt;p&gt;the screenshot shows that the CPU is high. but still we have no facts what is happening. What would help to nail the issue:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;logs from the engine during that time&lt;/li&gt;
&lt;li&gt;visual vm inspection: thread dumps, gc activity screenshots &lt;a href="https://developer.axonivy.com/doc/latest/engine-guide/monitoring/visualvm.html"&gt;https://developer.axonivy.com/doc/latest/engine-guide/monitoring/visualvm.html&lt;/a&gt;  (yes, maybe the heap is an issue, but how should we know without jvm inspection?)&lt;/li&gt;
&lt;li&gt;or even better: flight recorder records taken during these deployments &lt;a href="https://docs.oracle.com/javacomponents/jmc-5-4/jfr-runtime-guide/about.htm#JFRUH172"&gt;https://docs.oracle.com/javacomponents/jmc-5-4/jfr-runtime-guide/about.htm#JFRUH172&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Reguel Wermelinger</dc:creator><pubDate>Thu, 28 Nov 2019 05:31:05 -0500</pubDate><guid>https://answers.axonivy.com/questions/4153/deployment-of-iar-is-very-slow#4225</guid></item><item><title>Comment by khanh11166 on khanh11166's question</title><link>https://answers.axonivy.com/questions/4153/deployment-of-iar-is-very-slow#4224</link><description>&lt;p&gt;Sorry for late reply, today we faced the problem again, and it consume almost all CPU.
Could you take a look on the picture and share me some idea?&lt;/p&gt;
&lt;p&gt;One question, could I increase the heap will help?!&lt;/p&gt;
&lt;p&gt;&lt;img src="https://answers.axonivy.com/upfiles/cpu_and_ram.png" width="500"&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">khanh11166</dc:creator><pubDate>Thu, 28 Nov 2019 05:00:34 -0500</pubDate><guid>https://answers.axonivy.com/questions/4153/deployment-of-iar-is-very-slow#4224</guid></item><item><title>Comment by Reguel Wermelinger on khanh11166's question</title><link>https://answers.axonivy.com/questions/4153/deployment-of-iar-is-very-slow#4161</link><description>&lt;p&gt;ok then, but as said there is no known performance issue at deploy time. 
so, it's your turn to provide more insights on your actual deployment. hard to advise anything with the facts currently available&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Reguel Wermelinger</dc:creator><pubDate>Mon, 11 Nov 2019 03:08:17 -0500</pubDate><guid>https://answers.axonivy.com/questions/4153/deployment-of-iar-is-very-slow#4161</guid></item><item><title>Comment by khanh11166 on khanh11166's question</title><link>https://answers.axonivy.com/questions/4153/deployment-of-iar-is-very-slow#4160</link><description>&lt;p&gt;The file size is depend on module I deploy, sometime the file is just small (&amp;lt;1MB), some other is bigger (~50 MB). But the time is the same same with both 2 of them. &lt;/p&gt;
&lt;p&gt;The CPU and RAM is not always 100% at the deploy time. So I'm not sure it related to the issue.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">khanh11166</dc:creator><pubDate>Sun, 10 Nov 2019 23:08:15 -0500</pubDate><guid>https://answers.axonivy.com/questions/4153/deployment-of-iar-is-very-slow#4160</guid></item><item><title>Comment by Reguel Wermelinger on khanh11166's question</title><link>https://answers.axonivy.com/questions/4153/deployment-of-iar-is-very-slow#4158</link><description>&lt;p&gt;Hard to say what causes the delays. But the deployment process definitively shouldn't take that long unless your diskspace is almost full or CPU is under constant stress.
Maybe the log outputs would help to see which stage takes that long (validation or a certain deployment step?)
Can you share the size of the IAR you are trying to deploy as well?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Reguel Wermelinger</dc:creator><pubDate>Fri, 08 Nov 2019 05:24:47 -0500</pubDate><guid>https://answers.axonivy.com/questions/4153/deployment-of-iar-is-very-slow#4158</guid></item></channel></rss>