I can not understand the use of Java memory. I have an application that runs with a maximum amount of memory set to 256M. However, at some point I see that according to the task manager it takes up to 700 MB!
Needless to say, all other applications do not respond a bit when this happens, as they are likely to be replaced.
This is JDK 1.6 on WinXP. Any ideas?
A memory configuration is available for the application. It will not include
. , - , JVM , 700Mb JVM (- , ..)
, -Xmx, - , .
Java , JVM, , ..
, - , , , , - .
, , 256 . 1 .
, , , Java, . , , . Linux , , Windows.
-Xmx java. , java , ( 2kB, -Xss), PermGenSpace .. , , , , , , , .
, , Windows .
Do you mean a bunch? As far as I know, there are two things to take care of. The Xms option, which sets the initial java heap size, and the Xmx option, which sets the maximum java heap space. If the heap memory intercepts the Xmx value, there must be an OutOfMemoryException.
How about the virtual pages that it occupies. I think that Windows shows you a complete set of all aggregates.
Source: https://habr.com/ru/post/1735321/More articles:PHP Using XML for configuration file (s) are elements that are better than attributes or vice versa? - standardsSchedule of DynamicActivity children loaded from external XAML with parameters - argument-passingHow to create a MySQL table when it has two foreign keys? - databaseCreating a Drupal Newsletter for Processing Newsletters - phpObjective-C Method Parameter Parameters - objective-cSome objects created with PerWebRequest are not garbage collected at the end of a web request - garbage-collectionProblems with NHIbernate SysCache2 and SQLDependency - cachingSubversion and ASP.NET. - svnRecursion through class properties - reflectionJava library that includes $ {var} substitution - javaAll Articles