durgaprasad ganji

Greenhorn
+ Follow
since Mar 01, 2007
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
1
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by durgaprasad ganji

I am not holding up the browser, rather server response taking more than 20 min, hence getting timed out error message.how can I return to browser immediately after firing off thread/Business Logic which performs log operation and how can i check progress of the operation.
7 years ago
Dear Friends,

I am working one Servlet and Velocity(UI) based application. we have set the session max interval time as 15 minutes in my application that means if we keep our application keep idle for more than 15 min, we will get session time out or expired message in between.Here we cannot increase session max interval time not more than 15 min due to some restrictions from server(websphere) administration team.

in one scenario of our application, one request taking more than 20 min(due to some SQL query taking 20 min in returning huge result data).thus we are in panic situation in waiting for response up to 20 min and in between we are getting session time-out message. Here we cannot fine tune sql query to reduce the sql response.

In this case, i want http request to be keep running until response finishes and display data in browser or i want keep http session alive in server side during this request/response hence page cannot be expired while before response comes and display result data in browser

Please let us know how can i implement or keep http session alive or how can avoid the session keeping idle during this particular request/response.

It would be appreciated if anybody help me in this scenario..

Thanks in Advance,
Prasad
7 years ago
Hi all,

I am getting java.lang.OutOfMemoryError: Java heap space Exception ,

when running below java class in eclipse editor by configuring JVM of JDK1.5.0 within eclipse (or at command prompt) on windows platform

by using below class I am merging two Index Directories(one is 1.87 GB of size and other one is 522 MB of size) into new one using Lucene API
import java.io.File;
import org.apache.lucene.analysis.standard.StandardAnalyzer;
import org.apache.lucene.index.IndexWriter;
import org.apache.lucene.store.Directory;
import org.apache.lucene.store.FSDirectory;
import org.apache.lucene.store.RAMDirectory;
public class MergeIndex {


private MergeIndex (){

}
public static void main(String arg[]) throws InvalidDocDBXMLFormatException {

try{
mergeIndexes();

}catch(Exception e){
e.printStackTrace();
}


}


public static void mergeIndexes() {

try {
System.out.println("before add indexwriter");
IndexWriter writerDisk = new IndexWriter(FSDirectory.getDirectory(new File("D:\\DocServerData\\MergedIndexes\\DocDB1_Category1_Index"), true),new StandardAnalyzer(),true);
long l1 = System.currentTimeMillis();
System.out.println("before addIndexes method>>>>"+l1);
writerDisk.addIndexes(new Directory[]{FSDirectory.getDirectory(new File("E:\\1lac-7mar\\DocDB1_Category1_Index"), false),FSDirectory.getDirectory(new File("E:\\2lacs-19feb\\DocDB1_Category1_Index"), false)}) ;
long l2 = System.currentTimeMillis();
System.out.println("before Optimize method>>>"+ (l2-l1));
writerDisk.optimize();
System.out.println("after Optimize method"+System.currentTimeMillis());
writerDisk.close();
System.out.println("after add indexwriter");
}catch(Exception e){
System.out.println("Exception Occured>>>>>>" +e);
}

}
}


below is snapshot of my java class

Call tree (all threads together)
Name Time (ms)
All Threads
831,735 100 %
MergeIndex .main(String[])
831,563 100 %
java.lang.ClassLoader.loadClassInternal(String)
171 0 %

Generated by YourKit Java Profiler 6.0.12 Mar 9, 2007 10:34:49 AM


It would be appreacited if any body tell me how to increase JAva heap size
in jvm on windows paltform
11 years ago
I am getting below exception when running my java class
java.lang.OutOfMemoryError: Java heap space

pls tell me how to increase JVM heap size for on windows platform

It would be great helpfull anybody send solution for this
11 years ago
Here I am using tomcat for my java web application.
hereI am using using jspsmart package to upload the file
I am succefully uploading file to other system when tomcat open in debug mode.
But I am getting problem when i was try to upload a file from my system to other system if i have opened my tomcat in service mode.
here i am trying to upload file to doc directory(which is given sharing to my system) in other system(10.12.122.251)

I have given file path as \\10.12.122.251\\doc in my jsp where i am calling upload method of jspsmart class

if i run my application by opening tomcat in service mode
i am getting below Io exception i.e

javax.servlet.ServletException: Supplied uploadDir \\10.12.122.251\\doc is invalid

Here i Must & should open tomcat in service mode.I have no alternative.

pls do send answer by considering above statement only.
It would be very appreciated if anybody send solution for this issue.
Here I am using tomcat for my java web application.
hereI am using using jspsmart package to upload the file
I am succefully uploading file to other system when tomcat open in debug mode.
But I am getting problem when i was try to upload a file from my system to other system if i have opened my tomcat in service mode.
here i am trying to upload file to doc directory(which is given sharing to my system) in other system(10.12.122.251)

I have given file path as //10.12.122.251//doc in my jsp where i am calling upload method of jspsmart class

if i run my application by opening tomcat in service mode
i am getting below Io exception i.e

javax.servlet.Exception //10.12.122.251//doc invalid path given

Here i Must & should open tomcat in service mode.I have no alternative.

pls do send answer by considering above statement only.
It would be very appreciated if anybody send solution for this issue.
[ March 01, 2007: Message edited by: durgaprasad ganji ]
Here I am using tomcat for java web application.
I am succefully uploading file to remote systen when tomcat open in debug mode.
But I am getting problem when i was try to upload a file to other system if i have opened tomcat in service mode.
here i am uploading file to doc directory in remote system(10.12.122.251)
I have given path as 10.12.122.251//doc

if i run my application by opening tomcat in service mode
i am getting below Io exception i.e invalid path given

Here i Must & should open tomcat in service mode.I have no alternative.

pls do send answer by considering above statement only.
It would be very appreciated if anybody send solution for this issue.



Regards,
Durga Prasad G
11 years ago