<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:Wingdings;
panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
p.msonormal0, li.msonormal0, div.msonormal0
{mso-style-name:msonormal;
mso-margin-top-alt:auto;
margin-right:0cm;
mso-margin-bottom-alt:auto;
margin-left:0cm;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
span.Shkpostityyli18
{mso-style-type:personal;
font-family:"Calibri",sans-serif;
color:windowtext;}
span.Shkpostityyli19
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 2.0cm 70.85pt 2.0cm;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="FI" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal">Hi,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span lang="EN-US">It’s not unusual for CPU to go over 100% as modern hardware have multiple cores and 100% means that one of those cores is fully utilized. The transport webapp in particular can consume whatever resources the server has
to offer if there are multiple users looking at layers from WFS-services. On our servers the oskari-server application usually bounces between 15-120% CPU averaging at about 35% but this is of course dependent of the hardware and number of concurrent users
etc. Looks like you have quite a lot of memory assigned to Oskari. We’ve been running even our largest instances with about 4gb. Adding memory is not always the right solution since Java garbage collection just takes longer if there’s more “garbage” to clear
which might lead to the server not being responsive while making room in the memory.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Then there are other things that affect CPU usage like what else is running on that Jetty-process? You might want to separate the included GeoServer and transport webapps to other Jetty instances so the main oskari-server
is not hindered when these webapps consume resources if you have a lot of data going through those webapps. Are there any server code customizations that might lead to unexpected behavior like infinite loops on errors?<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Best regards,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> Sami<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span style="mso-fareast-language:FI">Lähettäjä:</span></b><span style="mso-fareast-language:FI"> Oskari-user <oskari-user-bounces@lists.osgeo.org>
<b>Puolesta </b>Ryyppö, Minna<br>
<b>Lähetetty:</b> torstai 23. toukokuuta 2019 15.06<br>
<b>Vastaanottaja:</b> oskari-user@lists.osgeo.org<br>
<b>Aihe:</b> [Oskari-user] Oskari's performance and java processes<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span lang="EN-GB">Hello dear Oskari-users,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB">At Finnish Heritage Agency we have had occasionally some problems with our Oskari application’s performance. At the server, that can be seen as bigger CPU load than normally. Top processes command gives a list like that:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-family:"Courier New";color:#1F497D"> PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-family:"Courier New";color:#1F497D">1546 jetty 20 0 15.534g 5.375g 16544 S 123.9 69.0 26019:00 java<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-family:"Courier New";color:#1F497D"> 992 ---- 20 0 1158860 674672 2648 S 0.3 8.3 644:39.14 ----<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-family:"Courier New";color:#1F497D">12753 ---- 20 0 396852 86396 78048 S 0.3 1.1 4:20.40 ---<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-family:"Courier New";color:#1F497D"> 1 --- 20 0 38160 4548 2588 S 0.0 0.1 0:09.68 ---<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-family:"Courier New";color:#1F497D"> 2 ---- 20 0 0 0 0 S 0.0 0.0 0:00.19 ----<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-family:"Courier New";color:#1F497D"> 3 ---- 20 0 0 0 0 S 0.0 0.0 0:13.08 ----<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB">So it looks like there is a java process by jetty which takes more of cpu than there is available. When this process starts, the application is unable to work properly.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB">My question is, has anyone else ever encountered similar situation? Or has any idea whether this kind of java-process is normal with Oskari? Or, what that process might do when it is taking so much processor power?<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB">I know that this is difficult to answer, but I’m just hoping that someone has had the same situation somewhere and could maybe give some good tips to solve this annoying problem…
</span><span lang="EN-GB" style="font-family:Wingdings">J</span><span lang="EN-GB"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB">regards,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="mso-fareast-language:FI">Minna Ryyppö<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="mso-fareast-language:FI">Geoinformation Specialist<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="mso-fareast-language:FI">Archives and Information Services<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="mso-fareast-language:FI">Finnish Heritage Agency<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="mso-fareast-language:FI">PL 913, 00101 Helsinki<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:FI">p. 0295 33 6253<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:FI"><a href="mailto:minna.ryyppo@museovirasto.fi">minna.ryyppo@museovirasto.fi</a><o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>