Response processing time causing pdf streaming issue

My servlet invokes JasperReports to generate streamed pdfs. One report has a lengthy processing time due to 5 second delay from complex stored procedure. Is the length of time to process this request causing my response to fail? Is there a setting to allow certain time for the request to process? Thanks.

That depends on the client. An average webbrowser will timeout the request after 30~60 seconds. This is catchable on the server side when OutputStream#close() throws an IOException (which is in case of for example Tomcat subclassed as ClientAbortException).
If it gets really that long, consider firing a new thread to process the long running process and return some page which fires repeated requests for "status update" until it is finished. In old times you could do that with a meta refresh header, but nowadays you can do that nicely with ajaxical stuff.

Similar Messages

  • Hard drive passes all tests but extremely high response times causing major performance issues.

    I have a HP Compaq Presario CQ62-360TX pre-loaded with Windows 7 home premium (64-bit) that I purchased just under a year ago.
    Recently my experience has been interrupted by stuttering that ranges from annoying in general use to a major headache when playing music or videos from the hard drive.
    The problem appears to be being caused by extremely hard drive high response times (up to 10 seconds).  As far as I know I didn't install anything that might have caused the problems before this happened, and I can't find anything of note looking back through event viewer.
    In response to this I've run multiple hard drive scans for problems (chkdsk, scandsk, test through BIOS, test through HP software and others) all of which have passed with no problems. The only thing of any note is a caution on crystaldiskinfo due to the reallocated sector count but as none of the other tests have reported bad sectors I'm unsure as to whether this is causing the problem. I've also updated drivers for my Intel 5 Series 4 Port SATA AHCI Controller from the Intel website and my BIOS from HP as well as various other drivers (sound, video etc), as far as I can tell there are none available for my hard drive directly. I've also wanted to mess with the hard drive settings in the BIOS but it appears those options are not available to me even in the latest version.
    System Specs:
    Processor: Intel(R) Pentium(R) CPU P6100 @ 2.00GHz (2 CPUs), ~2.0GHz
    Memory: 2048MB RAM
    Video Card: ATI Mobility Radeon HD 5400 Series
    Sound Card: ASUS Xonar U3 Audio Device or Realtek High Definition Audio (both have problem)
    Hard Drive: Toshiba MK5065GSK
    Any ideas?
     Edit: The drive is nowhere near full, it's not badly fragmented and as far as I can tell there's no virus or malware.

    Sounds like failing sectors are being replaced with good spares sucessfully so far, this is done on the fly and will not show in any test, you have a failing drive, I would back up your data and replace the hard drive.
    Sector replacement on the fly explains the poor performance also, replacing sectors with spares is normal if it is just a few over many years, but crystal is warning you there are too many, a sign of drive failure is around the corner.

  • Issue with processing time of JDBC receiver adapter

    Hi all,
    We are using PI 7.1 EHP1.
    We have an issue with JDBC receiver adapter taking too much time to process messages.
    We are using XML SQL format message protocol with INSERT_UPDATE as the document format.
    Each message can contain multiple records, i.e. 1 single message can result in many updates/inserts.
    Currently, time taken to process in 6-12 secs which is quite high considering the messages are not very large in size.
    We sent the statements to Oracle DBA to see if anything about the queries being used is causing issues. Awaiting inputs.
    In the mean time, wanted to check if there is anything that can be done from PI side that will help us improving the processing time.
    Thanks in Advance,
    Sailaja.

    Hi,
           i think the main cause is  query taking long time to execute in DataBase.
          -> increase the read time and response time in the JDBC receiver adapter.
      In the advanced mode table section of sender channel and receiver channel configurations, we can set driver properties for each DB connection. Any such property would have to contain prefix 'driver:'(with out quotes).
    For Oracle Database JDBC thin driver 10.2.0.3 version, the property oracle.jdbc.ReadTimeout helps to set read timeout while reading from the socket. Also for setting login time out in Oracle, we use oracle.net.CONNECT_TIMEOUT. To set these two properties use as follows: driver:oracle.jdbc.ReadTimeout 1000 driver:oracle.net.CONNECT_TIMEOUT 1000 The TimeOut Driver properties like ReadTimeout and CONNECT_TIMEOUT are in milliseconds.
    Refer note 1078420 for more details
    please go through this blog i hope it will help you.
        http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/c059d583-a551-2c10-e095-eb5d95e03747
    regards,
      ganesh
    Edited by: ganesh.nijampudi on Oct 25, 2011 12:00 PM

  • Low printer with lomg processing times ; network issues

    Hello,
    We are running ECC6 on HP-UX 11.23/Oracle 10.2
    We have configured all our printers ( more than 300) using the host spool access method L : Print Locally using LP/LPR.
    Every day, we have the same printers with the sames "low printers" :
    sm21 syslog shows ;
    Printer WRAL Temporarily Locked Due to Connection Problem
    Spool Process logs indicates ;
    Fri Feb 17 11:09:37 2012
      Warning: lpq on printer WRAL took 16 seconds!
      RSPOSYSLOG:
      SYSLOG written: CODE FBL, locat 28, param WRAL&16&
    There are several notes that indicate how to deactivate the printer pooling, but still, the best thing to do is to pinpoint the
    root cause of the issue, .....which we haven't
    I checked the spool distribution times in transaction STAD, I have unusuallyhigh "processing times" values.
    But I can't underdstand it.
    Is it a network processing time ?
    Our network team tell us that there is nothing abnormal, but is there a way to check from SAP , any netwok issue with the printers ?
    Thanks
    Edited by: Raoul Shiro on Feb 17, 2012 5:09 PM

    Hi,
    For log "Printer WRAL Temporarily Locked Due to Connection Problem", it means
    that for a period of xxx seconds (parameter rspo/lpq/temp_disable_time) no query or printing from sap for this printer are done anymore.
    This has no influence on the printout from any other application. The only effect is that the printer is 'disabled' within sap.
    The idea behind this concept is to prevent that a slow query can slow down the overall print performance of one server. During the query the spool wp cannot do anything else. In this time no printout to any printer from this server can be done.
    It would seem that the problem is outside of the R/3 system and is at UNIX or printer level. Perhaps you had a temporary Network or printer problem. You can test by executing the lpstat query to this printer at OS level.
    You can find out the exact lpstat query that your system uses, by looking at the system parameters 'rspo/host_spool/query'.
    The parameter &P in the command will be substituted by the host device name.
    If everything is correct in your unix spooler then it is very likely that the printer is not working correctly, so the unix spooler can't send print jobs to this printer, Therefore SAP blocks this printer for a certain time trying not to overload the unix spool queue.
    You might want to temporarily turn off the query but if there is a problem with a specific printer or OS problem, this
    will not be reported back to R/3.
    Some SAP notes:
    385794 - Connection problems with network access methods
    20924  - Parameter settings for remote printing
    Regards,
    Vincent

  • Master data: maintain "Goods Issue Processing Time" in R3 and CIF it ?

    Hello,
    we want to use the so called GIPRT (Goods Issue Processing Time) in the APO material master (Tab: GR/GI) to schedule SNP PREQs. I can maintain the field in APO but finally I'm looking for maintaining it in the conencted R3 material master (MM02). I see a field in R3 called MARC-GI_PR_TIME but after scanning the material master customizing I think you can't add that to any dynpro in MM01/02/03.
    I wonder if this field (MARC-GI_PR_TIME) in R3 is truly meant for maintaining the Goods Issue Processing Time in R3 and transfering it to SCM via the CIF or whether its there but has no function or is maintained somewhere else in R3. Any idea ?
    Workaround obviously would be to maintain the field in APO directly - but that's what I want to avoid since 99% of master data are coming from R3.
    Regards
    Thomas

    Hi Thomas,
    You can implement user exit EXIT_SAPLCMAT_001 and can write code based on your requirement ( May be you want to transfer this GR time for some of the products only). You can push the values by this user exit for any field in APO.
    Thanks,
    Abhilasha

  • Issue in FM-IDOC_INPUT_DEBITOR_MDM-Taking more processing time

    Hi Friends,
            The Customer master idocs are taking lot of time to process in production. Currently one idoc needs 8 minutes to process.  This is because of the select in the DEBMAS where in the program searches for the ADRMAS idoc for the same customer.I am using FM "IDOC_INPUT_DEBITOR_MDM", Is there any way to reduce the processing Time.
    Thanks in Advance ,
    Regards,
    Veera

    Thanks Gareth for the reply. This is standard FM and after the Call transaction, SAP code reads the  BDCMSGCOLL. If it does not found ans S in that, it fails the IDOC to 51 status.  There is no Z code in this.
    I would like to know what config changes can supress the success message . I tried doing BDC thoguth SM35 and there also found that no message is coming when the Customer is created. This would mean that there is something worng in srrting rather than FM and BDC which is causing the BDC failure in Std FM.
    Regds
    Harish

  • Process Chain Load Processing Time Issue

    Hi All,
    One my process Chain is running daily , but after 2 hours of load it is showing Red in the Monitor screen, but after 5 hours load is successful.
    Why Monitor screen is showing Red?
    Is it possible to Extend the load processing time in the Infopackage level?
    for e.g-  if they set as 60 seconds -- go to Red
    I want to change to 120 seconds -- go to Red.
    If yes...where we can do it ...please let me know the steps...
    Regards,
    Nithi.

    hey hi,
    double click on the infopackage -> go to "scheduler" on the top left corner of the menu -> click "Timeout time" and you have the different option to change it.
    hope this helps.

  • PDF format issue on email delevered Ibot

    Hi,
    I am having an uncommon issue.
    We are having some ibots delivering the report as PDF attachment to user group. On friday morning when the user tried to open the PDF attachment on a email ibot delivered, he got the error below.
    "Adobe Reader could not open 'filename.pdf'" because it is either not a supported file type or because the file has been corrupted (for example, it was sent as an email attachment and wasn't correctly decoded).
    After sometime the error was gone and everything started working as normal. But we dont know when we will get the same error again. The user has got the same error last month.
    There is not issue with the ibot design, as during the certain time frame all ibots delivered fails with same error.
    Please help me if you know the reason for this behavior.
    Thanks
    Krishana

    Do you have any settings in Adobe Reader to look for updates at a certain time like when the problem occurs. I'm wondering if there is something that temporarily disrupts the ability of the file to be converted to pdf which causes the corruption issue. Check to see that there are no scheduled updates going on or any system process that may take out the ability to create a pdf file temporarily. This may be what's happening.

  • PDF access issue with OHS WebGate

    Hi all,
    The architecture has OAM, OID, Documentum server. OID is used as user store for OAM. Documentum application is deployed in WebLOgic server. There is a OHS server front ending the WebLOgic server where we installed the webgate. We are protecting the Documentum URL through OHS host name in OAM Policy domain and everything is working fine so far. While downloading a pdf document in Documentum server application, it is processing as 33% and hangs over for 5 mins and finally displays an error given below.
    invokeMethod() failed while calling: onReturnFromProgress
    Operation failed : com.documentum.ucf.common.transport.TransportException: Client failed to handshake with server within 250 seconds.
    After closing this window, press the Refresh or Reload button on your browser to continue
    I have seen couple of metalink notes about this pdf webgate issue and tried several options for webgate params CachePragmaHeader and CacheControlHeader.
    Tried the following combinations:
    CachePragmaHeader           private
    CacheControlHeader private
    CachePragmaHeader           novalue
    CacheControlHeader novalue
    CachePragmaHeader           public
    CacheControlHeader public
    CachePragmaHeader           novalue
    CacheControlHeader private
    CachePragmaHeader           novalue
    CacheControlHeader public
    Like this I have tried almost 9 combinations but no luck. Also tried disabling the IP validation. There are no errors in webgate or access server logs
    Please let me know if you have any clue on this.
    -Mahendra.

    We're seeing an issue that looks almost identical to this but using Windows 2008/IIS7.x and WebGate v10.1.4.3. The PDF will begin download then it looks like a connection resets. We've tried it using PDF's ranging in size from <1mb to over >16mb. The results are consistent. On IIS turning off "http keep alive" allows the downloads to proceed (and probably diminishes performance to some degree).
    While the workaround we found allows PDFs to download I'd really be interested in seeing what's causing this.

  • GR processing time difference for PO/STO scheduling in ECC & APO

    Hi All,
                We are facing issue of PO scheduling in ECC & APO----
    --   In ECC, system calculates requirement date with planned delivery time +GR processing time but during addition of GR processing time it excludes weekends( Saturday & Sunday) However in APO, system calculates requirement date by addition of GR processing time in the planned delivery time but it includes weekends & eventually requirement date mismatch.
    -- Secondly we are using handling resource for scheduling purpose in APO but we found start time is different for differnent handling resources e.g. 14.00,16.00 ,from where the system picks up the timings
    -- In APO product master ,GR processing time is 1 day but during PO scheduling, system picks 3 days & calculats requirement date ,its strange for me
    Is there any way out for above mentioned issues
    Thanks in advance for your help
    Kind regards
    Milind

    Hi,
    Please check the factory calendars and time stream ids. The working schedule of APO should match with ECC.
    The location master also needs to be checked for what time stream is attached there and what is the working schedule.
    Thanks,
    Chan

  • High roll wait time, gui time and processing time

    Hi all,
    We are having a performance issue with the system at the moment. After running ST03N and STAD, we have determined that we are having abnormally high roll-wait, GUI and processing times.
    Here are some results from STAD:
    CPU time: 2956ms
    Processing time: 4417ms
    Roll wait time: 1319ms
    GUI Time: 2859ms
    Can someone direct me towards finding the problem?
    If you need more information please let me know. I would post a screenshot if I was able to.
    Thanks,
    HL

    Hi,
    Regarding Performance Of SAP system it will not be possible to Come to conclusion with the one Single data.
    GUI time is basically the time spent in front end i.e Your Network load or such time
    Coming to CPU time Can you see ST06 what is the CPU Utilization of your system?
    Roll Wait time is the time Spent in buffer if you can share us the OS and Memory configuration.
    We can Try to tune the Roll memory ( extended memory tuning) so that we can try to reduce the Roll time.
    If possible try to find the Top Dialog Response Time Transaction Is it Standard or for Z Programs.
    https://cw.sdn.sap.com/cw/docs/DOC-14387
    Go through this link you might get clear idea of performance.
    Thanks & Regards,
    Balaji.S

  • Crystal JRC PDF Export Issue

    We are experiencing a PDF export issue with Crystal JRC version 12.2.202.  The PDF report shows 1 of 3 pages but ONLY the first page is generated.  When this occurs, ALL other users that are exporting to PDF experience the same issue with any multiple page report.  I can't find any errors in the log that would indicate what the problem is.  To resolve the issue, I have to recycle the WebLogic application server that hosts  the JRC, which would indicate something gets "locked" in memory and gets cleared when the app server is bounced.
    Any ideas on how to resolve this ?

    Hi Ted,
    Thanks for the response!
    Though, the mentioned Sun JVM Bug explains the root-cause, the Bug status also state that it is not fixed yet.
    Also, we are reluctant to change the JVM Option to -Xint due to unknown impacts on JVM optimizations.
    Is there a patch released for CrystalReports to deal with this behavior? We are using CRJ runtime 11.5.7.620 and seeking for a patch on this version.
    Thanks.

  • Pdf caching issue

    Hi,
    I have a serlvet which calls a series of classes which generate a pdf on the fly. Once created on the server, the servlet then calls response.sendRedirect("path to .pdf");. This all works fine. My problem is when I change the data which appears in the pdf and generate it again through the same servlet (with the same filename). The second time the pdf is opened in the clients browser, it contains the first/original pdf data, until I refresh the browser and it generates it again with the updated data. This, I'm guessing, is because of a caching issue. However, in the calling servlet, I set both Cache-Control and Pragma to "no-cache". Is there something I'm missing? Thanks
       public void doGet (HttpServletRequest req, HttpServletResponse resp)
       throws ServletException, IOException
          resp.setHeader("Cache-Control", "no-cache");
          resp.setHeader("Pragma", "no-cache");
          ...//generate pdf on server
          resp.sendRedirect("path to file");
       }

    I don't know if this applies to pdf's but for HTML I have scrounged the Internet and come up with this:
        public static void disableCaching(HttpServletResponse response)
            response.addDateHeader("Expires", 791589600000L); // Wed Feb 01 00:00:00 EET 1995
            response.addHeader("Cache-Control", "no-store,no-cache,must-revalidate,post-check=0,pre-check=0");
            response.addHeader("Pragma", "no-cache");
        }Most of the horror in that is due to Internet Exploder. Different versions of IE require different magic spells. Googling for "no-store no-cache" etc finds more on the subject.

  • 5th Gen Airport Extreme AirPlay, Printing, Streaming Issues

    I had a fourth generation Apple Airport Extreme router.  It worked flawlessly with my two Airport Express devices with airplay and printing.  I also have the second generation Apple TV that had no issues. 
    I gave my old Extreme to a friend and I upgrade to the fifth generation Apple Airport Extreme router and I keeps loosing airplay streaming and printing with my Airport Express devices and Apple TV keeps loosing connection to my iTunes using home sharing.
    All Apple Airport devices are running firmware 7.5.2.  I have started from scratch two times by wiping all the devices with default settings.  I have played with the different wireless modes on the router.  All wireless modes cause the same issues.  The weird thing is that the devices do have Internet access, show a green light, and are seen by the Airport Utility, but they just loose the ability to stream audio / video and print.  I see all the devices connected to the Extreme router in the wireless statistics however they become unpingable when those services disappear on me.  Rebooting the router fixes the issue temporarily or sometimes renewing Apple Express DHCP in the Apple utility helps.
    I was going to return the router, but it feels more like a firmware problem that needs to be fixed since the Internet is always working.  Any other suggestion out there?

    I agree with you, this could be a firmware problem. But worst case it could be hardware problem too. I am actually into my fourth Airport Extreme Fifth generation. All have the same problem. Fisrt few minutes, the router is fine. But after 5-10 mins, the upload speed drop down really low. Then connection would be lost intermittently. But when I reset the router, or even quickly disconnect and connect the power line, the connection and the upload speed came back normal, although that again only last for several minutes as before.
    All the same problem with FOUR fifth gen Airport Extreme. And I bought them from different places too..two from Perth, Australia, one from Brunei and the other one was ordered the US through a local dealer.
    The funny thing is that when I use my cheapo Trendnet router, the connection and upload speed was as stable as a rock. No drop whatsoever so it is not the fault of my ISP but the Extreme itself.
    This issue has been really annoying me. Why can't Aplle fix it?

  • Unnecessary Purchasing Processing Time in scheduling agreement

    According to its business logic, the scheduling agreement is a document  that has  already been  released  by purchasing department,  and  its scheduling lines, that have been created by MRP  are valid for goods receipt without any need for additional purchasing  processing time. However, MRP scheduling incorrectly takes purchasing processing time into account (as defined in the IMG in plant parameters for external procurement - TCODE  OPPQ) when calculating planned availability date. Please advise how to correct this issue.
    Best Regards,
    Itzik Eshed

    This can be customized in
    SAP Customizing Implementation Guide
    -> Production
    --> Material Requirements Planning
    ---> Planning
    > Procurement Proposals
    > Define External Procurement
    Here you can select the indicator "Scheduling according to purchasing info record or agreement" either at plant or MRP group level.

Maybe you are looking for

  • Can I edit open a GoLive site in Dreamweaver?

    I have a site that I put together for a charity..I have done it for a few years and the content, images etc don't change too often. Every month or so there needs to be an update to timetable and information. At the moment I do this with GoLive which

  • Audio Cuts out after a few minutes.  IChat AV 2.1

    I have surfed and have not found any topics like this yet. Audio is cutting out after chatting with another Mac - AV user. Both microphones still appear to work in the preferences, but the person can not hear on the other side. Video works fine, but

  • Qosmio PX30t-A-119 is not connecting to WLAN

    My PC keeps telling me no connections are available. My router is on and my phone &'iPad can connect to it but my Qosmio can't. I managed to connect it via an Ethernet cable but when I removed it it still can't pick up any broadband signal. Any ideas

  • Newbie question-where to find forms development tool?

    I downloaded oracle 10g 10.0.2 enterprise or AS and my database is running, but I don't know where to find forms and navigation tools? please suggest me as i am practicing forms and developer as well, what products to download and what needs to be do

  • I can't remove third party apps from my macbook pro.

    I have installed some third party apps and now want to delete them. The apps are: MorphVOX, YTD, and Paintbrush. I have tried to drag and drop but unable to do. Please help me. I have macbook pro OS X 10.9.4