Solved

JSP Excel Report Timeout

Posted on 2006-11-21
6
328 Views
Last Modified: 2013-12-01
When running a web-layout JSP Excel report (as those in 240819.1), if the user
closes his browser or the portal times out the provider, the worker thread and
database query continue running. This eventually uses up the worker threads and
opmn is forced to restart the OC4J.

How can we avoid this?
0
Comment
Question by:rkogelhe
  • 4
  • 2
6 Comments
 
LVL 13

Accepted Solution

by:
anand_2000v earned 125 total points
ID: 18017937
you can set timeout  in sqlnet.ora file
Inactive Session Expiration Time Kill inactive SQLNET sessions

sqlnet.expire_time = <integer_minutes>
0
 
LVL 3

Author Comment

by:rkogelhe
ID: 18021075
Thanks for your comment.

The problem is that the query is still running... I'm not sure that this will help.
0
 
LVL 13

Assisted Solution

by:anand_2000v
anand_2000v earned 125 total points
ID: 18025646
use profiles in Oracle database
there are options of max cpu and max logical reads
0
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 
LVL 3

Author Comment

by:rkogelhe
ID: 18039095
In fact, that might help if we could put some sort of query execution time limit in place. I know about profiles, and I suspect we can't put an elapsed time limit on them, but perhaps if we created some sort of on-logon trigger...

The problem also seems more complicated than I initially indicated. In fact on our test server, I tried running a report that went longer than the engine connect timeout, and it times out instead at three minutes. This is either the portal provider timing out or OHS timing out. The engine is correctly killed after two minutes according the the rwserver.trc, but the query continues executing. This is not the case for normal PDF reports. Also, on the production server, when this happens, we see the queue fill up and no more jobs can be executed. I'm not sure why. Still investigating. It would be nice to know exactly how the JSPs use the reports engines and how the reports engines connect to the database, but I can't find any docs on this.
0
 
LVL 3

Author Comment

by:rkogelhe
ID: 18123867
I found out there's a bug 3551449 (internal only) that is caused by the fact that calls to the reports server (the jsp will make several) do not update the running status in the reports server and so it does not know to timeout the engine.
0
 
LVL 3

Author Comment

by:rkogelhe
ID: 18192927
I verified that the bug is the cause of the problem. The patch effects only one class file, so it can be applied to the rwrun.jar even in 9.0.4.0. After applying the patch, the engines are timed out and killed as for PDF reports.
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

-Xmx and -Xms are the two JVM options often used to tune JVM heap size.   Here are some common mistakes made when using them:   Assume BigApp is a java class file for the below examples. 1.         Missing m, M, g or G at the end …
This article is about some of the basic and important steps to be used to improve the performance in web-sphere commerce application development. 1) Always leverage the Dyna-caching facility provided by the product 2) Remove the unwanted code …
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now