This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
run out of memory while repeat save and load process
#3
(10-22-2011, 04:22 PM)calais007 Wrote: I think it exist a memory leak issue in UmdIsoReader.java,
There are two containers that named
private HashMap<String, Iso9660File> fileCache = new HashMap<String, Iso9660File>();

and

private HashMap<String, Iso9660Directory> dirCache = new HashMap<String, Iso9660Directory>();

I have reviewed this file and I just see that jpcsp ONLY do add item into container but without remove the added item, in my debugging, every time JPCSP read a file from UMD (e.g, in Game NOW Loading), then memory usage space increased, Java GC never free a reference that still in container. Maybe JPCSP should remove the unused items from container to prevent memory leak.

Sorry for my bad English
Try to do the next logical thing: look at how many objects are stored in the fileCache and dirCache. There should be only a few 100s, depending on how many files are stored in your ISO. And each object contains only a few bytes. So how can this explain that your memory usage is increasing of 100s of MB?
If you want to help, please post a complete log file in the corresponding game thread.
Always include a complete log file at INFO level in your reports. Thanks! How to post a log
Reply


Messages In This Thread
RE: run out of memory while repeat save and load process - by gid15 - 10-22-2011, 08:52 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)