Back

Topic

[KB791]WebVue and Java runtime crash

Tags: Java, Webvue

9 years ago
By RM
Options
Print
Applies to:

WebVue – from version 6.10 to  version 11.2.


Summary:

The WebVue applet can cause the Java runtime to crash by trying to allocate too much memory.

Originator: AK


Details:

The WebVue applet can cause the Java runtime to crash when trying to allocate too much memory. A symptom of this is a “Fatal Timeout” message in the PcVue Event Viewer as the WebVue applet is no longer sending a ping.

The most likely cause is using an image in a mimic that is too big (greater than 5MB), or using too many images in a mimic (20 or more). A simple way to check is to examine the /WEB/Pictures and /WEB/Cache folders of the PcVue project.

The heap (memory) space available for Java applets is, by default, 64MB. It is possible to increase this (see links below) although this should only be considered a workaround and not a solution. (The solution is of course to reduce the size and/or number of images used in the WebVue mimics.)

https://www.duckware.com/pmvr/howtoincreaseappletmemory.html
http://stackoverflow.com/questions/102003/how-can-i-start-an-java-applet-with-more-memory

To diagnose the runtime crash further requires access to a memory dump. Further information can be found from the following URL’s.

https://docs.oracle.com/javase/7/docs/webnotes/tsg/TSG-Desktop/html/plugin.html (How create a heap memory dump.)
https://docs.oracle.com/javase/7/docs/webnotes/tsg/TSG-VM/html/memleaks.html (Further info about memory leaks.)


Created on: 07 Jul 2015 Last update: 17 May 2024