<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">
<div>
        <table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                <tbody>
                        <tr>
                                <td>
                                        <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                                                <tbody>
                                                        <tr>
                                                                <td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
                                                                        <h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
                                                                        <!-- To have a header image/logo replace the name below with your img tag -->
                                                                        <!-- Email clients will render the images when the message is read so any image -->
                                                                        <!-- must be made available on a public server, so that all recipients can load the image. -->
                                                                        <a href="https://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">JBoss Community</a></h1>
                                                                </td>
                                                        </tr>
                                                        <tr>
                                                                <td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px; -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
Tweaking memory in JBOSS
</h3>
<span style="margin-bottom: 10px;">
created by <a href="https://community.jboss.org/people/aborgeld">André Borgeld</a> in <i>Beginner's Corner</i> - <a href="https://community.jboss.org/message/727674#727674">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">
<div class="jive-rendered-content"><p><strong style=": ; font-size: 10pt; font-family: Verdana;"><p>Dear JBoss users,</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p></strong></p><p><strong><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><p>I have a question. I'm using a planon server and the memory is increasing almost the max of the server, 2 gig.</p></p><p>A way is to put more memory in the server is one thing, but when i read the documentation i see the following article about "preventing memory for list"</p></strong></p><p><span style="font-size: 10pt; font-family: Verdana;">  </span><em style=": ; font-size: 10pt; font-family: Verdana;"><em style=": ; font-size: 10pt; font-family: Verdana;"><em style=": ; font-size: 10pt; font-family: Verdana;"><p><p align="left"><em>When the user tries to retrieve a huge list of records, the memory usage</em></p><p align="left"><em>sometimes reaches so high that the application stops responding.</em></p></p><em style=": ; font-size: 10pt; font-family: Verdana;"><em style=": ; font-size: 10pt; font-family: Verdana;"><em style=": ; font-size: 10pt; font-family: Verdana;"><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p></em><p><p><em><p><span style="font-size: 10pt; font-family: Verdana;"><p align="left">You can prevent this by setting the JVM parameter in <span style="font-size: 10pt; font-family: Verdana,Italic;"> </span></p></span></p></em></p></p></em></em></em></em></em></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><em>D:\Program Files\Planon\PlanonEE201012\Server\jboss-4.2.3.GA\tanuki\conf\jboss-wrapper-default.conf</em></p><p><em style=": ; font-size: 10pt; font-family: Verdana;">  </em></p><p align="left"><em>In the Java Additional Parameters section, add the JVM parameter as</em></p><p align="left"><em>"-DMaximumMemoryUsageLimitForLists= <number>"</em></p><p><em style="font-size: 10pt; font-family: Courier New;"><span style=": ; font-size: 2; font-family: 'Courier New';"><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p></span><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><span style="font-size: 10pt; font-family: Verdana;">  <p align="left">stands for a numeric value, for example, 90%. When the</p><p>memory usage reaches 90%, the system takes prevention measures.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p></span></em><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p></p><p><em style=": ; font-size: 10pt; font-family: Verdana;"><em style=": ; font-size: 10pt; font-family: Verdana;"><span id="mce_marker"></span></em></em><span style="font-size: 10pt; font-family: Verdana;"><p align="left">If the memory utilization is equal to or greater than the set value, it</p><span style=": ; font-size: 2; font-family: Verdana;"><p align="left">checks if the </p></span></span><p align="left" style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p align="left"><span style="font-family: Verdana; font-size: 10pt;"><p align="left"><span style="font-family: Verdana; font-size: 10pt;">is set. If the<p>GC parameter is not set, an error message is displayed.</p></span></p></span></p></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"><em> </em> </p><p><strong>When i see this file i don't see these settings at al in the config file. I only see:</strong></p><p><em># Java Classpath (include wrapper.jar)  Add class path elements as</em><br/><em>#  needed starting from 1</em><br/><em>wrapper.java.classpath.1=../lib/wrapper.jar</em></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><strong>Can i just place the GC param line and the -D MaximumMem line in the file if i want to tune the memory?<br/><br/>Thanks for your answer.<br/><br/>Kind regards,<br/><br/>André </strong></p></div>
<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
<p style="margin: 0;">Reply to this message by <a href="https://community.jboss.org/message/727674#727674">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in Beginner's Corner at <a href="https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2075">Community</a></p>
</div></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>