Memory usage of IDEA depends on the '-mx' JVM parameter (maximum memory heap
size) used for running IDEA. Until the memory size used for the JVM heap is
lower than the specified limit, the garbage collector does not perform
serious attempts to release memory. When the heap size limit is reached, the
garbage collector releases as much memory as possible. The memory used by
IDEA never exceeds the maximum memory heap value, plus some amount used by
the JVM for its internal needs (about 20-30 Mb).
Please note that decreasing the maximum heap size value could result in
lower performance of IDEA. This happens because IDEA can unload some
internal caches in response to lack of memory. At the same time, setting a
too low value for the maximum heap size can cause OutOfMemoryError. The
minimum value of the heap size limit which does not cause IDEA to throw
OutOfMemoryError depends on your project size and operations that you
perform. For example, performing usage searches with too many occurences
found could need more memory.
Thus, it is up to you how to configure the heap size in the most compromise
way.
The default value of the memory heap size is 96 Mb. To change this value,
open the IDEA startup script ('idea.bat' or 'idea.sh', depending on your
system, in the 'bin' folder of IDEA installation), search for '-mx96m' and
change it to the appropriate value.
Regarding your question about the memory usage after 4-5 days of using IDEA,
it's quite obvious. Because the memory heap size is lower than the specified
maximum and you don't run garbage collector explicitly, IDEA caches more and
more information about your project's and libraries' sources. As soon as
either the garbage collector is run explicitly or the maximum heap size is
reached, IDEA releases some of the cached data.
Best regards,
Valentin Kipiatkov
-----------------------------------------------------------
IntelliJ Software, http://www.intellij.com/
"Develop with pleasure"
-----------------------------------------------------------
----- Original Message -----
From: "Tahir Awan" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, October 26, 2001 11:17 PM
Subject: [Eap-list] memory leaks
> I am very happy with my evaluation of IDEA but have some concerns about
its
> memory leaks before buying it.
> I am running IDEA (Build 459) with 64MB at startup and 96MB max with
> JDK1.3.1.
> Project contains only ~200 classes but classpath is little heavy. I am
> working on a single project most of the times so no project-switch. Mostly
> simple java/jsp/ejb development with sometimes code-refactoring and using
> ANT from command-line.
>
> The memory indicate reads 55M of 64M within 10-12 hours of IDE startup.
And
> if I dont run gc, it reaches 86M of 96M after 4-5 days of use. Though its
> simple to stop/start IDEA but not convincing. People responsible for this
> wonder feature-rich tool should be able to solve these memory leak
problems.
>
> Thanks,
> Tahir
>
> _______________________________________________
> Eap-list mailing list
> [EMAIL PROTECTED]
> http://www.intellij.com/mailman/listinfo/eap-list
_______________________________________________
Eap-list mailing list
[EMAIL PROTECTED]
http://www.intellij.com/mailman/listinfo/eap-list