Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #35267
| From | Martin Gregorie <martin@address-in-sig.invalid> |
|---|---|
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: Restricting the memory usage of a Java program |
| Date | 2016-08-12 10:08 +0000 |
| Organization | A noiseless patient Spider |
| Message-ID | <nok76r$g9q$1@dont-email.me> (permalink) |
| References | <8760r7m18z.fsf@Equus.decebal.nl> <noisp2$12e7$1@gioia.aioe.org> <87wpjml720.fsf@Equus.decebal.nl> |
On Fri, 12 Aug 2016 10:34:15 +0200, Cecil Westerhof wrote: > Maybe I should rewrite it as an utility function, so I could use it in > all my applications. And of-course I should log to a (SQLite) database > instead of standard out. (It should be called logMessage instead of > giveMessage.) > That never hurts: I maintain a private library of useful stuff that tends to get into most of my programs because they make life easier, such as a command line parsing class and a general tracing and error reporting class, the latter giving runtime control of tracing detail and the option of wtiting tracing detail to a circular buffer that only gets displayed of an error is thrown - it provides a different view to stacktrace. Stacktrace shows where you are while the buffer dump shows how you got there. > There is 28 MB difference between -Xmx and what maxMemory returns. Where > did it go? > Workspace used during JVM initialisation but still there because the gc hasn't (yet) been run? -- martin@ | Martin Gregorie gregorie. | Essex, UK org |
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Restricting the memory usage of a Java program Cecil Westerhof <Cecil@decebal.nl> - 2016-08-11 23:42 +0200
Re: Restricting the memory usage of a Java program Arne Vajhøj <arne@vajhoej.dk> - 2016-08-11 18:04 -0400
Re: Restricting the memory usage of a Java program Cecil Westerhof <Cecil@decebal.nl> - 2016-08-12 10:34 +0200
Re: Restricting the memory usage of a Java program Martin Gregorie <martin@address-in-sig.invalid> - 2016-08-12 10:08 +0000
Re: Restricting the memory usage of a Java program Arne Vajhøj <arne@vajhoej.dk> - 2016-08-12 09:23 -0400
Re: Restricting the memory usage of a Java program Cecil Westerhof <Cecil@decebal.nl> - 2016-08-13 01:11 +0200
Re: Restricting the memory usage of a Java program Cecil Westerhof <Cecil@decebal.nl> - 2016-08-13 02:52 +0200
Re: Restricting the memory usage of a Java program Arne Vajhøj <arne@vajhoej.dk> - 2016-08-12 21:05 -0400
Re: Restricting the memory usage of a Java program Arne Vajhøj <arne@vajhoej.dk> - 2016-08-11 18:24 -0400
csiph-web