Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

maximum heap size of JVM

843835Apr 3 2002 — edited Apr 5 2002
hi,

I need to set the maximum heap size of the JVM. I know that I can do
it for a single run by saying:

java -Xmx75M example.class

But how do I make the JVM use this maximum heap size for all its
runs, without specifying '-Xmx75M' in every run.

I need this because I am using my system as a server for JSP web
site. For that site if a very simple query is given such as 'a' in title, as many as 6000
records as retrieved from my Filemaker Databases and the java
ResultSet object is not able to handle those records. The system is
then throwing an exception and error message 'Host not found' is
sent back to the client's browser. As far as I know, Filemaker does
not support 'LIMIT' keyword in queries.

So please tell me how can I rectify that problem.

Thanks in advance,
niranjan maturi

Comments

843835
which webserver are you using?
843835
hi,

Thanks for your reply. I am using tomcat server. I have installed jdk1.3.2 and that is the one the tomcat server is using.

It would be really helpful you can give me some suggestions.

niranjan maturi
which webserver are you using?
843835
Hi,
If you want to increase the maximum heap size for *SUN" JDK, it is wise to set TOMCAT_OPTS in the command line before starting the tomcat startup this way

[unix] export TOMCAT_OPTS=3D"-DXmx=3D512m"
[Windows] set TOMCAT_OPTS=3D"-DXmx=3D512m"


Hope that hepls.

Regards,
Senthil Babu
Developer Technical Support
SUN Microsystems
http://www.sun.com/developers/support/
843835
hi,

I tried setting TOMCAT_OPTS. The maximum I could go in my system is 1300M
i.e. set TOMCAT_OPTS="-DXmx=1300m".

Still I am having the problem that when some 5000 records are fetched from the database, the ResultSet object is not able to handle them. It is able to handle upto 2000 records. I am using windows2000, jdk1.3.2 and Filemaker Pro 5.0 databases.

I tried to set the maximum number of records that can be retrieved to 2000 so that the problem will be solved. But I am not able to set that as well. I did:
Class.forName("com.fmi.jdbc.JdbcDriver").newInstance();
Connection con = DriverManager.getConnection("standard statement");
PreparedStatement pstmt = con.prepareStatement("select id, pubyear, Checkedoutby, >>callnumber from mprrc_materials");
pstmt.setFetchSize(2000);
ResultSet rs3 = pstmt.executeQuery();
Its giving the error:
java.lang.AbstractMethodError at that setFetchSize() statement.

I guess the JDBC driver provided by Filemaker Pro does not support that. So what can be done to solve the problem.

Thanks,
Niranjan Maturi





1 - 4
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on May 3 2002
Added on Apr 3 2002
4 comments
134 views