... Why exactly do you need to know how much memory you're using, as opposed to just avoiding using it (allocating, garbage-collecting) too inefficiently? ... ...
Barclay, Daniel
daniel@...
Jul 1, 2009 5:56 pm
13398
... if i dont know how much memory's left, i can get out of memory exception, and I don't want it. i use my memory efficiently, i know how much i need for...
... I don't want it. ... calculations. if i rely on GC, it becomes too slow and potentially unstable. I don¹t bother to count memory. If I¹m cutting it that...
... Brian - What you say about allocating an object outside of a loop being more efficient is common sense and is almost certainly true. I say almost because...
As discussed earlier, the JVM is tuned for short lived objects, in the case of allocating inside a loop the only concern is generating the objects faster than...
... yes, sometimes i feel like "fighting the system", but there are benefits of using Java as opposed to C++. i won't list them here, as those here who...
... Allocation is only one half of the memory management problem. Sure, heap allocation can be as cheap as stack allocation, but the same can't be said for...
 Just one small point,  Mark and sweep is only for the tenured objects and is designed to decrease the amount of stop the world GC's  If these objects...
Madhu - I agree with everything you said, except for a couple of points: 1) As implied by David, the statement that "allocating more memory is costlier than...
... This is probably not a simple number as it depends on object graph complexity. You might get a ballpark value, but it's probably easier to measure it for...
... I'm with you there. I continue to be amazed at how good modern collectors are, but you can abuse the collector if you try hard enough. We had a case years...
Keith, Regarding garbage collection and memory allocation, the speaker you referred to earlier was Brian Goetz. If you summarize the thread into a concise...
Sorry I didn't respond sooner - just catching up on about a month's worth of emails. The notion of a 'marker' interface is somewhat retired in Java now that we...
Keith, I'm not sure what you are trying to do here... do you want maven to *launch* your script, or are you trying to use Maven to *assemble* everything...
Dave - Thanks for responding. Yes, it is a human issue and not a compiler issue. 1) For me, having the classes defined within the method enhances readability....
... i doubt that annotations would make it easier to understand the "marker" concept. they're nice feature, but it's a new thing to understand for a newbie,...
Dave - Thanks for offering to help. I'd like to create a pom file such that the user would would only need Maven, that pom file, and my JRuby script to run a...
All - Tomorrow is the first Monday of the month, and we hold our Java discussion lunch meetings on the 1st and 3rd Mondays of the month. Feel free to join us. ...
Phil and All - There are no formal topics for these lunch meetings. They are quasi- social gatherings where although there is no rule that we talk about Java...
Keith, This is a great idea and it is nice to see this happening. Surely this is of interest to many here. How I wish I could participate, the location is ...
Dinesh - I, like you, cannot spare the time to travel far for a meeting like this. So no, I'm not planning anything elsewhere. That said, I encourage you or...
Ignoring the GC, loader, memory model discussion for a moment. Your current configuration is going to be "less obvious" for other developers and more difficult...
Clay - Moving the classes inside the methods has nothing to do with optimization. It's about expressing more clearly the scope of the class. It's a human...
Well, I have speakers lined up for August, Sept, Oct, and November, but my July speaker fell through! Part of the problem is that I go on vacation for the...
There is a possibility of having a talk on Mule. There is a guy here at FGM giving this talk this week internally, and I asked him if he would do this as a...