applet viewer, java heap space error

Trouble during PacsOne Server installations
bobreaman
Posts:6
Joined:Thu Mar 31, 2005 5:53 pm
applet viewer, java heap space error

Post by bobreaman » Wed Apr 06, 2005 7:51 pm

the image file size on the disk around 2.1 MB size on the disk, the the thumnail looks good and full size jpeg looks good; when i invoke dicom applet viewer, it takes for ever. I hve enabled trace log it might help to analyze.
the java setting, general cache size set to unlimited.

Java Plug-in 1.5.0_02
Using JRE version 1.5.0_02 Java HotSpot(TM) Client VM
basic: Registered modality listener
basic: Referencing classloader: sun.plugin.ClassLoaderInfo@104faf8, refcount=1
basic: Added progress listener: sun.plugin.util.GrayBoxPainter@141b571
basic: Loading applet ...
basic: Initializing applet ...
basic: Starting applet ...
basic: httpCompression = true
network: Connecting http://192.168.1.216/pacs/dicomviewer/applet.jar with proxy=DIRECT
network: Connecting http://192.168.1.216/pacs/dicomviewer/applet.jar with cookie "PHPSESSID=3ppvbssursgvg9ei7e3807vld5"
basic: Downloading http://192.168.1.216/pacs/dicomviewer/applet.jar to cache
basic: encoding = null for http://192.168.1.216/pacs/dicomviewer/applet.jar
basic: Cached file name: applet.jar-4c52f72-2bea1c38.zip
network: Connecting http://192.168.1.216/pacs/dicomviewer/Dicom.dic with proxy=DIRECT
network: Connecting http://192.168.1.216/pacs/dicomviewer/Dicom.dic with cookie "PHPSESSID=3ppvbssursgvg9ei7e3807vld5"
network: Connecting http://192.168.1.216/pacs/viewer.php?ui ... 3604.0.1.5 with proxy=DIRECT
network: Connecting http://192.168.1.216/pacs/viewer.php?ui ... 3604.0.1.5 with cookie "PHPSESSID=3ppvbssursgvg9ei7e3807vld5"
network: Server http://192.168.1.216/pacs/viewer.php?ui ... 3604.0.1.5 requesting to set-cookie with "PHPSESSID=3ppvbssursgvg9ei7e3807vld5; path=/"
Exception in thread "Thread-5" java.lang.OutOfMemoryError: Java heap space

bobreaman
Posts:6
Joined:Thu Mar 31, 2005 5:53 pm

I have got another error also

Post by bobreaman » Wed Apr 06, 2005 7:57 pm

network: Server http://192.168.1.216/pacs/viewer.php?ui ... 205.0.1.11 requesting to set-cookie with "PHPSESSID=u6jlrcrmrbr2ut2q563unu76c5; path=/"
Exception in thread "Thread-5" java.lang.ArrayIndexOutOfBoundsException
at java.lang.System.arraycopy(Native Method)
at dicomviewer.DicomFile.load(DicomFile.java:224)
at dicomviewer.Viewer.postData(viewer.java:687)
at dicomviewer.LoaderThread.run(LoaderThread.java:56)


thanks,
Bob

pacsone
Site Admin
Posts:3149
Joined:Tue Sep 30, 2003 2:47 am

Re: I have got another error also

Post by pacsone » Wed Apr 06, 2005 8:22 pm

bobreaman wrote: Exception in thread "Thread-5" java.lang.ArrayIndexOutOfBoundsException
at java.lang.System.arraycopy(Native Method)
at dicomviewer.DicomFile.load(DicomFile.java:224)
at dicomviewer.Viewer.postData(viewer.java:687)
at dicomviewer.LoaderThread.run(LoaderThread.java:56)
The exception above suggests that this is a bug in the Java applet viewer (array index out of bound), so we'd need a sample image to reproduce this bug, or you can fix it yourself since the applet is open-source and the java source codes are included in the package (applet.zip).

If you want us to look into this bug, please send a sample image in a zip file to mailto:pacsone@pacsone.net. (You can anonymize the patient information if you're concerned about privacy)

bobreaman
Posts:6
Joined:Thu Mar 31, 2005 5:53 pm

stop sign image in thumpnail list

Post by bobreaman » Thu Apr 07, 2005 3:34 pm

what is meaning of the stop sign in thumnail list... is that image format is not supported ?
i will send you some sample images in zip format
Thanks,
Bob

pacsone
Site Admin
Posts:3149
Joined:Tue Sep 30, 2003 2:47 am

Re: stop sign image in thumpnail list

Post by pacsone » Thu Apr 07, 2005 3:42 pm

bobreaman wrote:what is meaning of the stop sign in thumnail list... is that image format is not supported ?
Yes, if the image is received by PacsOne but you saw a STOP sign in the thumbnail list, that means ImageMagick could not display it probably because the image format is not yet supported.

Guest

Post by Guest » Fri Apr 08, 2005 1:47 am

Was this issue resolved. I have valid images and thumnails. But, I also am seeing similar problems.
Exception in thread "Thread-5" java.lang.ArrayIndexOutOfBoundsException
at java.lang.System.arraycopy(Native Method)
at dicomviewer.DicomFile.load(DicomFile.java:224)
at dicomviewer.Viewer.postData(viewer.java:687)
at dicomviewer.LoaderThread.run(LoaderThread.java:56)

pacsone
Site Admin
Posts:3149
Joined:Tue Sep 30, 2003 2:47 am

Post by pacsone » Fri Apr 08, 2005 2:44 am

Not yet, still waiting for the sample image.

wdc1160
Posts:31
Joined:Mon Mar 21, 2005 11:19 pm

Is this of help?

Post by wdc1160 » Fri Apr 08, 2005 4:59 am

The files in this are spoofed(xrays not used for medical purposes).
http://www.delpyinc.com/pacsone/pacsone.php
user:temp
pass:temp

users are wellcome to look at my server. Maybe even help me troubleshoot the problem at hand?????

Jonathan
Posts:184
Joined:Mon Mar 22, 2004 11:52 am
Location:The Netherlands
Contact:

Re: Is this of help?

Post by Jonathan » Fri Apr 08, 2005 10:41 am

wdc1160 wrote:The files in this are spoofed(xrays not used for medical purposes).
http://www.delpyinc.com/pacsone/pacsone.php
user:temp
pass:temp

users are wellcome to look at my server. Maybe even help me troubleshoot the problem at hand?????
I cannot access the system or did you disable it already?

If this is also your clinical system I would be very carefull exposing it to the WWW because of security and confidentiallity issues.

wdc1160
Posts:31
Joined:Mon Mar 21, 2005 11:19 pm

Server Access

Post by wdc1160 » Fri Apr 08, 2005 7:05 pm

Jon, As the previous post indicated medical X-rays are not being used. They are real X-rays, however, they are my coworkers and I just xraying one another for fun. Nothing like radiating one another for fun. Also the tags are inaccurate, with the exeception of what equipment it originated from.

Also, the server is up. I have remotely accessed it numerous times. However, I have had people tell me they are having trouble. Please don't hessitate give feedback regarding problems.

wdc1160
Posts:31
Joined:Mon Mar 21, 2005 11:19 pm

access problems

Post by wdc1160 » Fri Apr 08, 2005 8:33 pm

Apparently the trouble accessing the server stems from IE security. If you have difficulty logging in, please adjust security appropriately

pacsone
Site Admin
Posts:3149
Joined:Tue Sep 30, 2003 2:47 am

Post by pacsone » Sun Apr 10, 2005 2:29 am

After some investigation with a sample image, it turned out the "OutOfMemory" errors from the Java applet were valid because the uncompressed image size is 2544 x 2048 16-bit NM images, and the default maximum allocated memory for a Java applet is 64M.

After increasing the maximum allocated memory (-Xmx parameter) for the browser Java VM to 128M, the image was displayed properly although you'd need at least 21" or larger display monitor to have a meaningful view of the image because of the huge size.

To increase the maximum allocated memory for the browser Java VM, say 128M, open the Java Plug-in Control Panel from the lower-right corner of the Windows Task Bar, or run 'jpicpl32.exe' from the directory where the Sun Java VM is installed, e.g.,

"C:\Program Files\Java\j2re1.4.2_03\bin"

select the Advanced tab and enter the following parameter for the Java Runtime Parameters field:

-Xmx128m

After applying the above change, you may need to restart any existing browser winow for the change to take effect.

wdc1160
Posts:31
Joined:Mon Mar 21, 2005 11:19 pm

Post by wdc1160 » Mon Apr 11, 2005 5:14 pm

I've made adjustments to my parameters through the Java control panel, using the Java tab and selecting Java Applet Runtime Settings, then entering the adjustments in the "Java Runtime Parameters" box, but still no avail. I've tried -xmx128m, -xmx256m, and -xmx512m.

After make the changes I still get nothing to load with Java.

Any suggestions?

pacsone
Site Admin
Posts:3149
Joined:Tue Sep 30, 2003 2:47 am

Post by pacsone » Mon Apr 11, 2005 5:41 pm

Two things:

1. Make sure your browser is using the Sun Java VM, not the Microsoft Java VM (MSJVM).

2. The Java Runtime Parameter should be -Xmx128m, not "-xmx128m" as the lower-case 'x' option may not work as a valid parameter.

Guest

Post by Guest » Mon Apr 11, 2005 6:19 pm

I have the Sun Java VM, and my "X" is capitalized in the Java Runtime Parameter entry, but Java still won't load.

When I try and open it all I get is the Java logo in the center of the screen, the red progress bar shows full progress, and the extenstions on the star behind the Java logo continues to light up and rotate around the logo symbolizing it's still "thinking".

Any other suggestions?

Post Reply