Out Of Memory Error - Java heap space in Windows 8.1

141 views
Skip to first unread message

hitech...@gmail.com

unread,
Jun 14, 2016, 3:29:45 AM6/14/16
to qz-print
Getting the error,

at qz.printer.action.PrintHTML.parseData(Unknown Source)
at qz.ws.PrintSocketClient.processPrintRequest(Unknown Source)
at qz.ws.PrintSocketClient.processMessage(Unknown Source)
at qz.ws.PrintSocketClient.onMessage(Unknown Source)
at sun.reflect.GeneratedMethodAccessor10.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.jetty.websocket.common.events.annotated.CallableMethod.c
ll(CallableMethod.java:70)
at org.eclipse.jetty.websocket.common.events.annotated.OptionalSessionC
llableMethod.call(OptionalSessionCallableMethod.java:68)
at org.eclipse.jetty.websocket.common.events.JettyAnnotatedEventDriver$
.run(JettyAnnotatedEventDriver.java:210)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPo
l.java:635)
at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPoo
.java:555)
at java.lang.Thread.run(Unknown Source)
Caused by: java.io.IOException: java.lang.OutOfMemoryError: Java heap space
at qz.printer.action.WebApp.capture(Unknown Source)
... 13 more
Caused by: java.lang.OutOfMemoryError: Java heap space
at java.nio.HeapByteBuffer.<init>(Unknown Source)
at java.nio.ByteBuffer.allocate(Unknown Source)
at com.sun.javafx.tk.quantum.QuantumToolkit.createPlatformImage(Unknown
Source)
at javafx.scene.image.Image.<init>(Unknown Source)
at javafx.scene.image.WritableImage.<init>(Unknown Source)
at javafx.scene.Scene.doSnapshot(Unknown Source)
at javafx.scene.Node.doSnapshot(Unknown Source)
at javafx.scene.Node.snapshot(Unknown Source)
at qz.printer.action.WebApp$4$1.handle(Unknown Source)
at qz.printer.action.WebApp$4$1.handle(Unknown Source)
at javafx.animation.Animation.impl_finished(Unknown Source)
at javafx.animation.AnimationAccessorImpl.finished(Unknown Source)
at com.sun.scenario.animation.shared.SingleLoopClipEnvelope.timePulse(U
known Source)
at javafx.animation.Animation.impl_timePulse(Unknown Source)
at javafx.animation.Animation$1.lambda$timePulse$25(Unknown Source)
at javafx.animation.Animation$1$$Lambda$165/9705027.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at javafx.animation.Animation$1.timePulse(Unknown Source)
at com.sun.scenario.animation.AbstractMasterTimer.timePulseImpl(Unknown
Source)
at com.sun.scenario.animation.AbstractMasterTimer$MainLoop.run(Unknown
ource)
at com.sun.javafx.tk.quantum.QuantumToolkit.pulse(Unknown Source)
at com.sun.javafx.tk.quantum.QuantumToolkit.pulse(Unknown Source)
at com.sun.javafx.tk.quantum.QuantumToolkit.lambda$runToolkit$363(Unkno
n Source)
at com.sun.javafx.tk.quantum.QuantumToolkit$$Lambda$72/14436719.run(Unk
own Source)
at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(Unknown Source)
at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
at com.sun.glass.ui.win.WinApplication.lambda$null$141(Unknown Source)
at com.sun.glass.ui.win.WinApplication$$Lambda$68/8068989.run(Unknown S
urce)
... 1 more
[TRACE] 2016-06-14 12:43:49,998 @ qz.utils.PrintingUtilities:?
Returning processor back to pool
[INFO] 2016-06-14 12:46:22,122 @ qz.ws.PrintSocketClient:?
Connection closed: 1006 - Disconnected

What is optimal min & max heap size, should give while running qz-tray.

In ubuntu machine, I did not face any issue, but once i tried in Windows 8.1, getting out of memory.

PS- was printing HTML page.

Thanks
Navanee

Kyle La Barge

unread,
Jun 14, 2016, 8:20:54 AM6/14/16
to hitech...@gmail.com, qz-print
HTML printing in QZ Tray 2.0 requires more memory.  We have modified our launching method to launch the software with 512MB of memory.  This should be able to handle any HTML printing.

Can you please tell us how you are launching the software? For example: shortcut on desktop, auto start, etc.  This has been thoroughly tested but we may have missed something when implementing this.

What is optimal min & max heap size, should give while running qz-tray.
If you are running the software via command line:
 
java -Xms512M -jar "%PROGRAMFILES%\QZ Tray\qz-tray.jar" 

 

Regards,
Kyle


--
You received this message because you are subscribed to the Google Groups "qz-print" group.
To unsubscribe from this group and stop receiving emails from it, send an email to qz-print+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages