I have index file around 2GB and when I optimize the index file tomcat is
taking more memory than normal and even after completion of optimization
also it is still taking more memory than the normal memory.. is this way it
will happen or do I need to change any thing to reduce the memory I am
sending the code for optimization .. Please tell me is there any wrong in
the following code.