Slow Printing from Java (AGAIN!)

While Java printing seems to be somewhat improved over what I've seen in the past, one of our customers has several end-users who need up to 45 minutes to print a simple, ten-page, pure text report, and some have been complaining about missing pages and/or poor print quality.
Our product offers users a choice between printing reports directly, or generating PDFs using the GnuJPDF library. In my own tests, I've found that if I print an eleven-page report directly, it sends a full megabyte to the printer (an HP LJ6MP, presumably running in PostScript mode), and takes two and a half minutes to print. If I generate a PDF, it takes two and a half SECONDS to genrate the PDF, and if I then print the PDF from Acrobat, it sends little more than a third of a megabyte to the printer, which then churns out pages as fast as it's able to, in well under two minutes.
In effect, Sun's own Java AWT printing system, even after considerable improvements over several years, is STILL considerably slower and clunkier than a not-quite-public-domain jar.
What's wrong with this picture?

try...
java.lang.InheritableThreadLocalHmm. I admit I haven't looked at this thread in a while.
But what does an "InheritableThreadLocal" (or an ordinary "ThreadLocal," for that matter) have to do with Java printing?

Similar Messages

  • How to fix extremely slow printing from web pages with latest updates (iMac) & HP Office jet printer. (It was not a problem with earlier versions of Firefox & same computer & printer.)

    The latest two updates of Mozilla Firefox are not useful for me because of extremely slow printing of web pages. It was never a problem before. Same iMac and HP officejet printer. How can I either fix it, or revert to an earlier version of the browser (without losing all my bookmarks) which didn't cause this problem?

    Try scanning from your Mac.  Use Image Capture app in your Applications folder.
    Click once on the scanner on the left side, then click on Show Details along the bottom.  Along the right side you will see LOTS of options for scanning and saving.
    Say thanks by clicking "Kudos" "thumbs up" in the post that helped you.
    I am employed by HP

  • XML Printing from Java

    I have an urgent request from my company's client to implement a feature of printing in our application.
    Actually the application is basically an XML Builder which generates XML code at the backend, something like Dreamweaver.
    I have no clue about printing in Java, and have not much time to research on this topic. If anybody have a program to send an XML file to print (Color printing if possible), please post here or email me at [email protected]
    Any help in this regard is highly appreciated (Dukes Dollars also available).
    Thanks
    Raheel

    I realize you're under time pressure, but this link may be of assistance: Printing in Java, Part 1: Acquaint yourself with the Java printing model

  • PL/SQL log messages are not printing from Java concurrent program

    Hi,
    I have a strange issue while submitting the Java concurrent program through PL/SQL.
    I have a PL/SQL concurrent program which will invoke the Java concurrent program inside the package by use of "FND_GLOBAL.SUBMIT_REQUEST". It worked and submitted successfully. From that Java concurrent program we are calling some other PL/SQL packages and printing some log messages over there. But problem here is the request is only printing the Java log messages in view log but not the PL/SQL log messages.  But if I submit the Java concurrent program directly from SRS form at that it is printing both Java and PL/SQL log messages.
    I am just wondering how the log messages has not printed. Please provide your inputs to solve this problem.
    Thanks
    Suriya

    I'm adding log messages in the package body , but these messages are not printing after completion of concurrent prog.
    Any suggestions.
    FND_FILE.PUT_LINE(FND_FILE.LOG,'Data Test :');Do you have COMMIT in your code?
    https://forums.oracle.com/forums/search.jspa?threadID=&q=%27FND_FILE.PUT_LINE%27+AND+commit&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    Thanks,
    Hussein

  • Slow printing from Mac to HP Business Inkjet 2800dtn

    Hi,
    We have an iMac running
    Mac OS X 10.5.8
    Indesign 5.0 CS4
    Acrobat Pro 9.0.0
    HP Business Inkjet 2800 driver PS v3010.107, with 76Mb Memory
    It's taking forever to print documents that are a few Mb in size.
    The documents are created with Indesign.
    I've tried outputting to pdf and it's still no better.
    One pdf is 3.5Mb and just gets stuck at 5%. The printer shows "processing job" until it fails after 30 mins.
    I've tried printing the pdf from a Windows XP pc using the HP postscript driver and it's the same. The spool file shows as being 18Mb on the PC.
    Printing using Windows PCL driver, the speed is OK but the quality is poor. The only way to get these to print is by using the Windows to print to PS with the print to Image option selected.
    I've looked at the Mac spool folder and it looks like 6Mb when it goes to print.
    It prints OK to an A4 HP CP3505N colour laser.
    I've got a call out with HP but they seem stumped at the moment.
    Any advice would be great.
    Many thanks

    Hi,
    if you will follow my correction, that not the printing itself is slow but the time for transferring the data to the printer, so I can serve with a solution.
    Look attached file or to the following (english) thread. There is a new modified driver for the 2800, supporting 2 tray, duplex and sizes to A3.
    http://www.mac-forums.com/forums/other-hardware-peripherals/119579-g5-very-slow-printing-h p-2800-a.html#post923300.
    The german readme is included in the ZIP. The file should work on german and english systems.

  • CE 10 - Slow printing from Report Viewer in Win Server 2K3

    Post Author: JacobK
    CA Forum: General
    I'm not very familiar with Crystal reports, we are having slowness issues when printing from the web through report viewer in Win2K3.  Recently upgraded from Win 2000 to 2K3.  Same crystal version, CE 10.  On the 2000 system this report printed fine.  Now there is a delay in bringing up the report in viewer and then an extreme delay when printing.  This report prints normally when printing directly from Crystal.
    Any ideas?
    Thanks in advance.

    OK so I have updated VS 2010 to SP 1, and installed CR2010. Within my project I have updated the referenced .dlls
    CrystalDecision.CrystalReports.Engine
    CrystalDecision.ReportAppServer.ClientDoc
    CrystalDecision.ReportSource
    CrystalDecision.Shared
    CrystalDecision.Web
    I updated the web.config assembly entries to match the new version # (13.0.2000.0) and the app compiles.
    However, now when I try to run a report I receieve the following error...
    An error of type <System.Web.HttpException> occurred
    Error Details: The 'PageToTreeRatio' property cannot be set declaratively.
    I am sure I need to make some code changes but I cannot find this "PageToTreeRatio" attribute anywhere in my .asp code. Is this something you are familiar with? Is this parameter in the report itself?
    As I mentioned before the reports were built in CR10 Deveoper (not in Studio) is that the source of this problem? Will I have to rebuild all the reports in VS2010?
    Thank you for all the help so far, I am a lot closer than I was yesterday!!
    -C

  • Having a problem printing from Java

    I've written a program in Java that is supposed to print a document. This program when run on Linux gives a "print services not found" exception . Whereas, the same program when run on Windows prints the document.
    The printer on which the printing is done is an HP deskjet printer. This printer is on the network. The version of Linux is 7.2. The version of Java is 1.4. I am able to print documents from Linux Operating sys. The problem is printing documents from java.
    Please can u advice on how I can overcome this problem or advice on another alternative.
    Thank u
    Dhanajay K.

    Hello,
    Did you solve your problem? I have the same problem.
    In fact, I wrote a program using the JPS. Java finds the printers on Windows... JPS found the printers when I used LPD. But today I use CUPS, and JPS does not find any more the printers.
    I believed that the JPS used "Printcap" to find the installed printers ? did'nt ?
    I have well the "printcap" automatically generated by CUPS...
    Thank you for all informations.

  • Slow printing from windows 2008 R2 with Cisco 6509

    Dear All,
    I am having a wiered issue in my network. We have a windows 2008 R2 print server. Normal documents print's fine. If you print a image or pdf file, it takes a long time to print. For example a 2 MB PDF image with two page took me 10 minutes to print. The data from the server to the physical printer is really slow. To test it, i have loaded the driver on another windows 2008 R2 and the result is same slowness. We uses Xerox Colorqube 9303 printers.
    I have tried most options from microsoft which didnt help. I have installed a windows 2012 server to test if its specific to windows 2008, but the result remains same. Printing from a windows PC is perfectly fine; 32 bit PCs we have.
    I have seen someone got a solution to this by disabling ip local-proxy-arp, this is not enabled nor available in my switch.
    I have 6509 as core switch with IOS 12.2(33)SXH8. Does anybody come across such a scenario? Is there any special port configuration required for windows 2008 R2 to work normal?
    A sample interface configuration is given below
    GigabitEthernet1/10 is up, line protocol is up (connected)
      Hardware is C6k 1000Mb 802.3, address is c89c.1dd9.2619 (bia c89c.1dd9.2619)
      Description: ***Connect-to-Server-form***
      MTU 1500 bytes, BW 1000000 Kbit, DLY 10 usec,
         reliability 255/255, txload 1/255, rxload 1/255
      Encapsulation ARPA, loopback not set
      Keepalive set (10 sec)
      Full-duplex, 1000Mb/s, media type is 10/100/1000BaseT
      input flow-control is off, output flow-control is on
      Clock mode is auto
      ARP type: ARPA, ARP Timeout 04:00:00
      Last input never, output 00:00:13, output hang never
      Last clearing of "show interface" counters never
      Input queue: 0/2000/88/0 (size/max/drops/flushes); Total output drops: 0
      Queueing strategy: fifo
      Output queue: 0/40 (size/max)
      5 minute input rate 0 bits/sec, 0 packets/sec
      5 minute output rate 151000 bits/sec, 30 packets/sec
         10067885 packets input, 4366947776 bytes, 0 no buffer
         Received 36631 broadcasts (2569 multicasts)
         0 runts, 0 giants, 0 throttles
         11 input errors, 1 CRC, 0 frame, 77 overrun, 0 ignored
         0 watchdog, 0 multicast, 0 pause input
         0 input packets with dribble condition detected
         251401032 packets output, 96130506019 bytes, 0 underruns
         0 output errors, 0 collisions, 5 interface resets
         0 babbles, 0 late collision, 0 deferred
         0 lost carrier, 0 no carrier, 0 PAUSE output
         0 output buffer failures, 0 output buffers swapped out
    Any help would be really appreciated.
    Thanking you in advance.
    Prince Mathew

    Hello
    Printing from a windows PC is perfectly fine; 32 bit PCs we have.
    - Printing directly from a computer which has the locally installed driver is printing fine.- it does seem to suggest the server or the network- however locally installed print drivers work fine so the communication to the printer from the client over the network seem to be okay.
    However the centrally installed print drivers means the processing job is now  with the server which is between the printer and client
    Whats the RTT from client and server and client to printer .etc?  - perform a extended ping to validate connectivity between all 3
    Have you hardcoded the server port to the nic setting of the server - Are the speed/duplex settings manually applied to the servers  if so make sure they are also manually set on the switch ports realting to these servers - this is apllicable to the printers too.
    Is the same driver used locally is also on the printer server correct?
    Whats printing protocol ( RAW) and port being used on the printer server
    Do you have print pooling setup on the server -(typo in last post)
    Are these printer shared in A/D and deployed by GPO -are the correct permissions set on these shares
    Check the printer permission on the spool folder also - users need at least read & execute privileges
    Have you manually cleared the print spooler folder and restarted the spooler service on the server?
    Are the print jobs being render to the clients or is the server taking the load of processing the print job?
    Any printer queue priorites set?
    res
    Paul
    Please don't forget to rate any posts that have been helpful.
    Thanks.

  • Very slow printing from vista PC to PSC1355 on XP PC

    My wife has a Vista laptop which connects wirelessly to my home network.
    There is a PSC 1355 connected to my PC which runs XP.
    The printer is shared and can be seen from the vista machine but when trying to print from the vista machine it is extremely slow in printing and viewing the printer`s settings. Also if the shared printer is setup as the default printer then the vista machine is very slow opening any MS office document.
    I`ve searched all over the place for quite a while to try to resolve this problem to no avail. The printer can`t be setup on the vista machine because of it`s location.
    Any ideas?

    Printing to a printer on a Mac from a PC running Windows XP
    http://www.ifelix.co.uk/tech/3000.html
    Printing to a printer on a Mac running 10.4.x from a Windows PC using Bonjour for Windows
    http://www.ifelix.co.uk/tech/3014.html
    iFelix

  • Printing From Java "The most F%&()�G stupid thing in the world"

    I have Spent the whole day trying to print a JPanel out of My application. I have gotten the panel to print but the print is not consistant. If the User Changes the Size of the Fame the Panel size Changes and Dimensions of the Plot Changes (aspect ratio). This happens because A print call makes a an image and then scales the image!!! Would it not make way more sence to scale the Jpanel to fit into the specified page size and then make an image to print! I anyone nows of way to do this Please!!!!!!!! let me know.

    I think the above post is an understatement, Printing in java is pretty much useless unless you can create your own framework, which you have to pretty much be a guru to create, but fortunately there was a nice guy, named Jean-Pierre Dube' who wrote an atricle for javaworld.com titled Printing in Java which provides a framework. It is really good. Initially I tried to print a JPanel and had the same problem as you, but then I read the article and used the framework and it did exactly what I wanted it to. I think what it does is take the programmed size (or preffered size) so if in your program you have specified the JPanel size (600,600) it will print it out in this size even if the person changes the size of the frame.
    Hope this helps and a big thanks to Jean-Pierre Dube'
    There are also a few other print Frameworks out there for free such as JFreeReport which is another good one, and I'd like to thank those guys if they happen to read this as well ( by the way, they made a post a few days ago stating a new version was out, and someone snubbed them by saying that this was not the place for advertising, but I think it is great they let us know, nothing wrong with being informed of a good freeware, especially for stuff that makes up where java lags. Thanks guys at JFreeReport).
    Cheers, Oz!!!!

  • Very slow printing from Konica connected via Airport Express

    Hello folks,
    I have a very strange problem with erratic printing to a network printer, connected to an Airport Express via ethernet.
    The Network:
    - Draytek modem/router hosting DHCP
    - Time Capsule connected to Draytek. It's in bridge mode, and runs the WiFi network
    - Airport Express 1 in "Join a Network" mode, ethernet clients allowed
    - Konica Minolta Magicolor laserjet printer connected via ethernet to AX1
    - Airport Express 2 in "Extend a Network" mode elsewhere in the office
    All client devices on the network are getting IP addresses in the correct range etc. I have fixed the IP of most devices at the router level, so they don't change.
    Client Macs print directly to the printer using IPP (or might be LPD, I can check if relevant) using apparently a correct driver and IP address.
    WiFi network is very strong throughout, and the distance between Time Capsule and AX1 is just a few feet.
    Here's the problem:
    At the start of the day, the printer works just fine. Fast.
    Then, inexplicably, you send a document to it and the print queue reports "Spooling....xx%" which increases painfully slowly compared to when it's working normally.
    This happens randomly with both small and large files. A modest photo can take over an hour to fully spool and print when it's doing this.
    Turning the printer off and on again tends to make it work properly, until the above happens again.
    This is driving me mad. Is there a problem with:
    (a) The WiFi network or airport hardware
    (b) The printer
    (c) The drivers
    (d) The printing protocol
    (e) Me
    (f) All of the above
    Any insight would be most welcome. The Konica tech reckons it's working, but I think he didn't spend long enough sending print jobs to it for the problem to manifest.
    P.S.
    One of my main questions is, when the print queue says "spooling", is this the process of progressively sending the file over the network? Or does spooling occur when the data is either already fully arrived at the printer, or hasn't left the Mac yet?
    Could the printer's unwillingness to accept data cause the slow spooling? Why might this happen?

    It should work. Enable Printer Sharing via System Preferences -> Sharing. The Mac does need to be turned on.
    P.S. Try to just post one thread on your question instead of crossposting over several forums.

  • Slow print from Acrobat X Professional to RICOH Aficio 2018D RPCS printer

    Hello.
    Thank you very much for your attention.
    Our network printer, RICOH Aficio 2018D RPCS, takes 20 seconds to print each sheet from a PDF document generated by Acrobat X.
    It seems the printer considers each sheet as a new document so starts the whole process of warming and so on.
    These PDF documents were previously created by Adobe Acrobat X Professional (version 10.0.1), from scanned documents by BROTHER MFC-9840CDW Printer (also network printer), with a laptop running under Windows XP Professional, Version 2002, Service Pack 3.
    (All legal software, licensed.)
    The PDF documents have about 4MB & 140 pages each one.
    We tried to fix the problem by changing all these parameters:
    - saving file as "Reduced Size PDF",
    - saving file as "Optimized PDF",
    - saving file as "PDF/A",
    - saving file as "PostScript",
    - printing as image,
    - printing in low quality,
    - opening and printing the document from Adobe Reader X (version 10.0.1),
    but nothing works.
    (Adobe Reader was not installed when troubles started. It's uninstalled now and troubles keep going on.)
    The RICOH Technician also tried some updates, but troubles are still there.
    He printed a PDF downloaded from Internet (similar size as ours) and the printer worked at normal speed!
    We also can print the documents at normal speed in the BROTHER MFC-9840CDW Printer.
    I really appreciate any suggestion
    (Message in progress. Adobe Reader it's not the problem either.)

    Thank you so much, GilliganBT
    ... but... I can´t find that option ("Render print jobs on client computers") in my Sharing tabs.
    I just have "Do not share this printer" or "Share this printer".
    Anyway, I´ll tell that to the printer repairman and I´ll let you know

  • How can I print things from java alllication ?

    I have made an java application using Swing with JDBC
    now I want to take print from java application directly
    any help is apprecicable
    thanks in advance

    Jean-Pierre Dube has written a series of articles about printing in Java for the online magazine JavaWorld.
    You can find the first article at http://www.javaworld.com/javaworld/jw-10-2000/jw-1020-print_p.html.
    Ronald.

  • I'm unable to print from illustrator running os x mavericks

    Why can't I print from illustrator? I don't have a problem from other apps. just illustrator. I downloaded new drivers for both of my printers an HP Deskjet D1600 and an Epson Stylus Photo 1400. Anyone know of a fix? This first happened when I upgraded to OS X Mavericks. I got a fix and everything worked. Then I installed a Silhouette Cameo (vinyl cutter machine) now I can't print from Illustrator again. Anyone have any ideas or a fix?

    Never mind. Found the fix. These got reinstalled and need to be removed. Ugh!
    [Hard Drive]/Library/Printers/PPDs/contents/Resources/en.lproj[Hard Drive]/Library/Printers/PPDs/contents/Resources/It.lproj[Hard Drive]/Library/Printers/PPDs/contents/Resources/Ja.lproj[Hard Drive]/Library/Printers/PPDs/contents/Resources/ko.lproj[Hard Drive]/Library/Printers/PPDs/contents/Resources/Zh_CN.lproj[Hard Drive]/Library/Printers/PPDs/contents/Resources/Zh_TW.lproj
    I am unable to print from Illustrator CS3 since downloading os x Mavericks 

  • Slow spooling and printing from Powerpoint 2013

    Has anyone experienced slow spooling and printing of PowerPoint documents from PP 2013?
    If I attempt to print the same document from PP2010, it spools and prints normally. It seems that the document background has something to do with slowness.
    I saw an older KB where Microsoft suggested to disable background printing. Disabling background printing makes it even worse.
    Thanks
    here is a link to a PowerPoint file
    https://www.dropbox.com/s/hle8x32j6wemday/SLOW.pptx?dl=0

    Hi,
    Does this only happen with PowerPoint documents? What about other Office files? How many machines are affected by this issue?
    Please first check whether you have the same print settings in PowerPoint 2013 and 2010.
    Also, if this is a network printer, please try to add it as a local printer, then try again and see if issue persists.
    Regards,
    Ethan Hua
    Forum Support
    Come back and mark the replies as answers if they help and unmark them if they provide no help.
    If you have any feedback on our support, please click
    here

Maybe you are looking for