Search:

Type: Posts; User: Fazan

Search: Search took 0.12 seconds.

  1. Replies
    20
    Views
    2,114

    [SOLVED] Re: ArrayList memory bloat that I cannot comprehend

    I think I have all I need at this point, and I'm willing to call this problem solved. I know why the memory bloat was occurring and what I can do to prevent it. Thank you kindly, everybody :)
  2. Replies
    20
    Views
    2,114

    [SOLVED] Re: ArrayList memory bloat that I cannot comprehend

    I don't need to zero data at all, and I intend to remove rows from both lists as I match them up. As a point of fact, I may not even need a third list. It should be simple enough to just update the...
  3. Replies
    20
    Views
    2,114

    [SOLVED] Re: ArrayList memory bloat that I cannot comprehend

    It would normally be a pretty simple problem, but I'm trying to devise a software package that will work with a wider range of data than JUST the two files I'm given in case my project manager wants...
  4. Replies
    20
    Views
    2,114

    [SOLVED] Re: ArrayList memory bloat that I cannot comprehend

    *edit*
    4 AM, and my brain is slowing down :)

    What's causing the OutOfMemoryEorror is the code I listed in this post, specifically the second loop. It's a mirror of what I was doing at work, and...
  5. Replies
    20
    Views
    2,114

    [SOLVED] Re: ArrayList memory bloat that I cannot comprehend

    I did try that, though I didn't mention it for fear of making an even bigger fool of myself :) In nearly all cases, Garbage Collection does shave around 20MB off the used memory, so it's clearly...
  6. Replies
    20
    Views
    2,114

    [SOLVED] Re: ArrayList memory bloat that I cannot comprehend

    *sigh*
    Some days I pine for C++ and its EXPLICIT pointer invocations... But then I remember how much of a tangled mess I made of those and resign myself to just try and anticipate what Java does. So...
  7. Replies
    20
    Views
    2,114

    [SOLVED] Re: ArrayList memory bloat that I cannot comprehend

    OK, show of hands - that I was simply creating more references to the SAME ArrayList completely skipped my mind, and that would indeed explain a lot of the differences. I'll need to come up with a...
  8. Replies
    20
    Views
    2,114

    [SOLVED] Re: ArrayList memory bloat that I cannot comprehend

    Correction - that OutOfMemoryException is actually a java.lang.OutOfMemoryError: Java heap space. What caused it is the following, and this will probably make me look really unprofessional and...
  9. Replies
    20
    Views
    2,114

    [SOLVED] Re: ArrayList memory bloat that I cannot comprehend

    I actually considered that mayby totalMemory is reporting false results and would have chalked it up to that, but my strongest evidence for the discrepancy is that the second loop will run out of...
  10. Replies
    20
    Views
    2,114

    [SOLVED] ArrayList memory bloat that I cannot comprehend

    I apologise for jumping right into a question, but I ran into the sort of behaviour that just makes no sense to me. It's like looking into the face of Great Cthulu - it's something that should not...
Results 1 to 10 of 10