Hi,
we r getting the following error during the process.
we r using IIS and
tomcat server and we have 1GM of ram.
// what i have done in my
jsp end =get
doc cout* from the db
count=100
start=1
do{
if(count > end){
count=end;
}
select col1,col2 from tbl1 where serial_no between "start" and "count"
{
here we r using search engine API's to get the field information's
process
and insert the value to another table ( lets table2)
}
start=count;
count=count+100;
}while(start!=end)
// end process
and we r having 40k doc's in the table. And my program run up 30k doc's
And during the process im getting the error like...
Internal
Servlet Error:
javax.servlet.ServletException
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:508)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
at org.apache.tomcat.core.Handler.service(Handler.java:287)
at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:812)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
at org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection(Ajp12ConnectionHandler.java:166)
at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
at java.lang.Thread.run(Thread.java:484)
Root cause:
java.lang.OutOfMemoryError
<>
can anyone give me some solution to fix this out.........
thanks and regards
vishnu