Improve default memory settings in idempiere-server.sh

Description

Consider increasing the default heap and perm size in idempiere-server.sh.

Perhaps provide an option similar to Hiep Lq's new debug option which provides different memory configurations, such as testing and production.

Consider adding +HeapDumpOnOutOfMemoryError, so that a heap dump will be available if a memory leak occurs.

Environment

None

Attachments

2
  • 08 Sep 2017, 01:47 PM
  • 08 Sep 2017, 01:47 PM

Activity

Show:

Carlos Ruiz October 13, 2017 at 1:47 PM

ERP OpenSource Italia September 8, 2017 at 2:47 PM

Hi Carlos, i dont see the windows version. Any particular reason ?

Carlos Ruiz September 8, 2017 at 2:09 PM

Hi , recently we fixed the IDEMPIERE_JAVA_OPTIONS issue with ticket IDEMPIERE-3451.

Now you can set up that on the myEnvironment and it will be used correctly (same as it was before in adempiere).

ERP OpenSource Italia September 8, 2017 at 1:51 PM

I have modified the server startup script to allow an external batch to set java variables (and/or other env. variables like JAVA_HOME).
If a file called idempiere-env.sh/.cmd is found on the same path as idempiere-server.sh then its read.
Its main purpose is to be able to set the env. variable IDEMPIERE_OPTS wich is then added to the start command line.

WDYT ?

Regards,
Silvano (www.freepath.it)

Neil G October 24, 2014 at 2:29 PM

That does sound like a better idea.

Perhaps an idempiere-server.ini file with these and other settings? Or an environment variable.

I see there is an idempiere.ini file.

I think it is important that it is self documenting. So whichever solution is chosen, this should reflect clearly in the log while the server is starting, as to the source of the settings, and what the settings are. Example: "Setting Java option -Xmx2048m from environment variable JAVA_OPTS"

Won't Fix

Details

Assignee

Reporter

Affects versions

Priority

Created October 17, 2014 at 8:25 AM
Updated October 13, 2017 at 1:48 PM
Resolved October 13, 2017 at 1:47 PM