Document Upload ErrorDocument Upload Errorhttps://liferay.dev/en/c/message_boards/find_thread?p_l_id=119785333&threadId=1096429062024-03-28T20:19:10Z2024-03-28T20:19:10ZRE: Document Upload ErrorOlaf Kockhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1100792082018-06-15T18:04:41Z2018-06-15T18:04:41Z<div class="quote-title">jitendra shahi:</div><blockquote>Can you suggest where is the error?</blockquote><br /><br />As everything works well with another Store implementation, it's a good guess that the S3Store has a memory problem. As you seem to be on the latest GA of 6.2 CE, you might want to check if there's any changes in later releases to this store. With 6.2 CE being EOL'd a while ago, this might be the best - or without reading the code first: Try the latest 7.0 or 7.1 codebase in a testcase. If they work well, then compare their code with your 6.2 release.Olaf Kock2018-06-15T18:04:41ZRE: Document Upload Errorjitendra shahihttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1098320002018-06-12T08:36:30Z2018-06-12T08:36:30ZHi Sir,<br /><br />As you have suggested I make AdvancedFileSystemStore in my localhost and tried to upload the 1gb file. And it is successfully uploaded. <br /><br />Here -xmx is 2048m.<br /><br />Can you suggest where is the error?jitendra shahi2018-06-12T08:36:30ZRE: Document Upload ErrorOlaf Kockhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1097267142018-06-09T05:05:51Z2018-06-09T05:05:51Z<div class="quote-title">jitendra shahi:</div><blockquote>I makes the ram 8GB and increases the xmx 3072M. Now I can upload upto 600mb but not 1gb.<br />Should I use java7 or java8 is fine.<br />And I have done S3 integration as liferay suggested.</blockquote><br /><br />I believe Jorge's suggestion means: Can you reproduce this behavior when you use FileSystemStore, or AdvancedFileSystemStore? This would be a clear pointer to the root cause. I'm not sure what "...as Liferay suggested" means: If someone at Liferay (or elsewhere) told you to use the S3Store, Jorge is not asking to reverse this decision, just to make a test to see if your problem comes from that component.<br /><br /><div class="quote-title">jitendra shahi:</div><blockquote>Can you create ticket for that on liferay?</blockquote><br /><br />You can do this yourself on <a href="https://issues.liferay.com">https://issues.liferay.com</a>. If you're an enterprise customer, you can also file it in LESA, the enterprise support system with the agreed on service level. <br /><br />As you're on the free forums here, we're asking you to help reproduce the issue by pointing to tests like Jorge did.Olaf Kock2018-06-09T05:05:51ZRE: Document Upload Errorjitendra shahihttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1096857452018-06-08T15:35:45Z2018-06-08T15:35:45ZI makes the ram 8GB and increases the xmx 3072M. Now I can upload upto 600mb but not 1gb.<br />Should I use java7 or java8 is fine.<br />And I have done S3 integration as liferay suggested.<br /><br />Can you create ticket for that on liferay?jitendra shahi2018-06-08T15:35:45ZRE: Document Upload ErrorJorge Diazhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1096752682018-06-08T13:26:28Z2018-06-08T13:26:28ZI would try adding more memory.<br /><br />Perhaps it is a bug of S3 storage integration, you can also try configuring a filesystem store and try again, If you have memory problems, the issue is related with that store.Jorge Diaz2018-06-08T13:26:28ZDocument Upload Errorjitendra shahihttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1096429052018-06-07T22:10:12Z2018-06-07T22:10:12Z<html><head></head><body>Hi All,<br><br>I increased document upload size to 1GB. files upto 250mb is uploading fine. But when i try to upload file more then 400mb console showing error below :<br><br><strong>Java.lang.OutOfMemoryError : Java Heap Space</strong>. I tried to<strong> increase Xmx and permSize by editing setenv.sh</strong> file. But the issue is still there. <br><br>I given <strong>Xmx 2048m and permSize 512m</strong>.<br><br><strong>Please help how I can get rid of this error.</strong><br><br><strong>Configuration : <br>I am using LIFERAY 6.2 CE GA6 on ubuntu , JDK 8 and ubuntu has 4gb ram.</strong><br><br>whole error is : <br><pre><code>
22:50:24,290 WARN [ajp-bio-8009-exec-7][RestStorageService:1771] Content-Length of data stream not set, will automatically determine data length in memory
Exception in thread "ajp-bio-8009-exec-7" java.lang.OutOfMemoryError: Java heap space
at org.apache.http.util.ByteArrayBuffer.expand(ByteArrayBuffer.java:62)
at org.apache.http.util.ByteArrayBuffer.append(ByteArrayBuffer.java:92)
at org.apache.http.util.EntityUtils.toByteArray(EntityUtils.java:119)
at org.apache.http.entity.BufferedHttpEntity.<init>(BufferedHttpEntity.java:62)
at org.jets3t.service.impl.rest.httpclient.RestStorageService.putObjectImpl(RestStorageService.java:1776)
at org.jets3t.service.StorageService.putObject(StorageService.java:813)
at org.jets3t.service.S3Service.putObject(S3Service.java:2121)
at org.jets3t.service.S3Service.putObject(S3Service.java:2265)
at com.liferay.portlet.documentlibrary.store.S3Store.addFile(S3Store.java:94)
at com.liferay.portlet.documentlibrary.store.BaseStore.addFile(BaseStore.java:109)
at com.liferay.portlet.documentlibrary.store.StoreProxyImpl.addFile(StoreProxyImpl.java:55)
at com.liferay.portlet.documentlibrary.store.SafeFileNameStoreWrapper.addFile(SafeFileNameStoreWrapper.java:73)
at com.liferay.portlet.documentlibrary.store.DLStoreImpl.addFile(DLStoreImpl.java:109)
at com.liferay.portlet.documentlibrary.store.DLStoreImpl.addFile(DLStoreImpl.java:124)
at com.liferay.portlet.documentlibrary.store.DLStoreUtil.addFile(DLStoreUtil.java:146)
at com.liferay.portlet.documentlibrary.service.impl.DLFileEntryLocalServiceImpl.addFileEntry(DLFileEntryLocalServiceImpl.java:272)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:115)
at com.liferay.portal.spring.transaction.DefaultTransactionExecutor.execute(DefaultTransactionExecutor.java:62)
at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:51)
at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:111)
at com.liferay.portal.spring.aop.ServiceBeanAopProxy.invoke(ServiceBeanAopProxy.java:175)
at com.sun.proxy.$Proxy202.addFileEntry(Unknown Source)
at com.liferay.portlet.documentlibrary.service.impl.DLFileEntryServiceImpl.addFileEntry(DLFileEntryServiceImpl.java:73)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMeth