Hello Dave!

For Java Web Start and the .sh and .bat files I think we have set 512M. The
reason for this is that working with a medium-sized ArgoUML project requires
this and if you start doing some reverse engineering it grows quickly (try
reverse engineering the ArgoUML application itself...).

We don't want this to cause problems for persons testing the application and
at the time 512M seemed like a sensible level. The Sun JVM has (or at least
had) a default of 64M that is used if this is not specified.

If we use a too small value and the ArgoUML application will be slow for
large enough models because of a lot of Garbage Collections and as the model
grows it will stop working entirely when it is out of memory. For this
reason we should use an as big value as possible to avoid having the JVM
have any fixed limitation. If we use a too big value in relation to the
amount of real memory in the host running the application, the ArgoUML
application will be slow because the JVM will refrain from doing Garbage
Collections and instead use more memory causing more swapping.

I think that the value should be approximately the amount of real memory in
the machine running ArgoUML. 512M was a reasonable at the time it was set
because developers used 512M or could upgrade their machines to. Nowadays 2G
would probably be a more appropriate figure with this reasoning since most
machines are sold with 2G but there are other scalability problems that I
guess makes working with ArgoUML on large models unbearable. I am just not
sure where the level is.

If you want to change, I suggest you increase to 2G or 4G. This will allow
users working with really big models without thinking about the memory
problem.

I will add a comment to the issue.

        /Linus


2008/5/30, Dave Thompson <[EMAIL PROTECTED]>:
>
> Hi All,
>
> What are the memory options (i.e. JVM command line arguments) for launching
> argouml?  So far, I've used no memory arguments and never had it crash, but
> in fairness, I have not really stressed the application.
>
> It is suggested that we need '-Xmx512m'.
> - http://argouml.tigris.org/issues/show_bug.cgi?id=5078#desc4
> - http://argouml.tigris.org/faqs/users.html#xmx
>
> http://java.sun.com/javase/6/docs/technotes/tools/windows/java.html,
> implies that 'Xmx512m' sets the maximum size of the memory allocation pool
> to 512MB.
>
> What is the official line on this...?
> Should users do this for all argouml projects, or just 'large' ones?
> Is there any harm in using or not using this option?
> Is 512MB enough/too much (sounds like quite an arbitrary figure)?
>
> If necessary, I will update the .bat, .sh, and windows launcher
> accordingly, none of which have this argument at present.
>
> Regards,
>
> Dave
>
> P.S. I know about the proposal in issue 4957
> http://argouml.tigris.org/issues/show_bug.cgi?id=4957 to set the heap
> space based on the user properties file.  I think we should start simple
> first though.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to