Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Source of Out Of Memory error

 
Dilip kumar
Ranch Hand
Posts: 360
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All -

I'm getting OutOfMemoryError as soon as I call the method on some other system via web service. I'm wondering how to find out if is the issue on my system or the other system. Really appreciate any suggestions. Thanks much

Entries in log file :
Calling InsertRecords method via web service
Out of memory error null

[ January 12, 2006: Message edited by: Dilip kumar ]
[ January 12, 2006: Message edited by: Dilip kumar ]
 
Mike Noel
Ranch Hand
Posts: 108
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A stack trace might help. It appears that the OOM exception is coming from your JVM since you're catching an OOM itself rather than a SOAP exception that has a message "OutOfMemory".

_M_
 
Dilip kumar
Ranch Hand
Posts: 360
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks much for the response Mike.

I changed my code to

But I don't see more than
Out of memory error java.lang.OutOfMemoryError
 
Layne Lund
Ranch Hand
Posts: 3061
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What does the stack trace say? This should at least indicate which line caused the exception.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic