[Logo] Enterprise Client Community
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Client Side OutOfMemory within file Upload  XML
Forum Index -> Development
Author Message
schmuck

Power User
[Avatar]

Joined: 08/04/2008 16:27:16
Messages: 83
Offline

Hello,

as I wrote in the topic, the client runs into an error:

Code:
Exception in thread "AWT-EventQueue-2" java.lang.OutOfMemoryError: Java heap space
 	at java.util.Arrays.copyOf(Unknown Source)
 	at java.lang.AbstractStringBuilder.expandCapacity(Unknown Source)
 	at java.lang.AbstractStringBuilder.append(Unknown Source)
 	at java.lang.StringBuffer.append(Unknown Source)
 	at org.eclnt.client.elements.impl.util.FileUploader.startUploadFiles(FileUploader.java:387)
 	at org.eclnt.client.elements.impl.util.FileUploader.start(FileUploader.java:333)
 	at org.eclnt.client.elements.impl.FILEUPLOADBUTTONElement.triggerServer(FILEUPLOADBUTTONElement.java:60)
 	at org.eclnt.client.elements.impl.BUTTONElement$MyMouseActionListener.mouseReleased(BUTTONElement.java:75)
 	at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
 	at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
 	at java.awt.Component.processMouseEvent(Unknown Source)
 	at javax.swing.JComponent.processMouseEvent(Unknown Source)
 	at java.awt.Component.processEvent(Unknown Source)
 	at java.awt.Container.processEvent(Unknown Source)
 	at java.awt.Component.dispatchEventImpl(Unknown Source)
 	at java.awt.Container.dispatchEventImpl(Unknown Source)
 	at java.awt.Component.dispatchEvent(Unknown Source)
 	at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
 	at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
 	at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
 	at java.awt.Container.dispatchEventImpl(Unknown Source)
 	at java.awt.Component.dispatchEvent(Unknown Source)
 	at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
 	at java.awt.EventQueue.access$000(Unknown Source)
 	at java.awt.EventQueue$1.run(Unknown Source)
 	at java.awt.EventQueue$1.run(Unknown Source)
 	at java.security.AccessController.doPrivileged(Native Method)
 	at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
 	at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
 	at java.awt.EventQueue$2.run(Unknown Source)
 	at java.awt.EventQueue$2.run(Unknown Source)
 	at java.security.AccessController.doPrivileged(Native Method)
 


maxPostSize on server side is 10.500.000 bytes. Up to 5MB files it works. More then 5MB I run into this error.

The client has -Xmx=256m

Any ideas what happens there? The client should have enougth memory for an 10MB file!


regards,
Michael Schmuck

[ICQ]
CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5526
Offline

...just checking...

Björn

Björn Müller, CaptainCasa GmbH
CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5526
Offline

Hmmm, sure that you are not uploading 50MB (instead of 5MB as you say...)??

Regards, Björn

Björn Müller, CaptainCasa GmbH
schmuck

Power User
[Avatar]

Joined: 08/04/2008 16:27:16
Messages: 83
Offline

sure !

this file fails for example:

7,87 MB (8.257.536 Bytes)
[ICQ]
CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5526
Offline

Hi,

I always though that using StringBuffer is the smartest way for concatenating strings - but indeed StringBuffer has some very obscure features inside, that cause the OutOfMemory when dealing with long strings...

We today will post a message in the Snippet-Area of the forum. Please look there for more details.

"Your" problem now is solved. The fix is part of the next update or can be sent on your request.

THanks + regards!
Björn

Björn Müller, CaptainCasa GmbH
 
Forum Index -> Development
Go to:   
Powered by JForum 2.1.6 © JForum Team