File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Tomcat and the fly likes Issue related to Tomcat memory setting Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Issue related to Tomcat memory setting" Watch "Issue related to Tomcat memory setting" New topic
Author

Issue related to Tomcat memory setting

Garg Amit
Greenhorn

Joined: Jan 13, 2009
Posts: 21

I am using Tomact 4.1. When we run the tomcat with memory setting(600,1498) then it does not work it gives memory error where as when we run with the (512,1280), it work correctly.

Physical RAM available is 2GB.

Application call native dlls written in C++.

1. Could any suggest why it is happening? We are decreasing the memory setting in second case but that gives us the correct result.

2. Amount of memory which the c++ code would need, from where it would be assigned. it would be assigned from memory which we have assigned from tomcat setting or it would be assigned from remaining physical memory on RAM.
Javid Jamae
Author
Ranch Hand

Joined: May 14, 2008
Posts: 198
Please show us the error. Are you getting a Java stack trace, or a core dump? When do you get the error, on startup or after the system is operational for a while?


Author: JBoss in Action, javidjamae.com, @javidjamae on Twitter
Garg Amit
Greenhorn

Joined: Jan 13, 2009
Posts: 21
Actually system is operational. When we try some functionality that interact with c++ code the we get the error. We are not getting any java stack trace. Point at which application call the native c++ function we get error from that function.

Dll which is written in c++ and unfortunately we don't have source code for that.. I'm just trying to figure out the possibilities.....
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Issue related to Tomcat memory setting