RE: Multiple temp files in Liferay 6.2 Tomcat 7.0.62

Jesus Vazquez Fernandez, modified 5 Years ago. New Member Posts: 2 Join Date: 3/20/20 Recent Posts
When I try to upload big files with primefaces 6 (p:fileUpload), Liferay creates 3 temp files:
1 upload_XXX file is deleting well2 20200320095340390GUJGUWDN file is never deleted.3 20200320095340390GUJGUWDN folder with files inside is never deletedAnother problem is that the fileUpload is too slow, and takes 30min in trigger the bean method when I try to upload 2GB file.
thumbnail
Neil Griffin, modified 5 Years ago. Liferay Legend Posts: 2655 Join Date: 7/27/05 Recent Posts
Hi Jesus,
When you get an opportunity, please create a new PrimeFaces portlet project using the Maven archetype:generate command available at the following page from liferayfaces.org:
https://faces.liferay.dev/home/-/archetype-portlet/liferay-portal-version/6.2/jsf-version/2.2/component-suite/primefaces/build-tool/maven

This will provide you with the ability to create a Short, Self Contained, Correct (Compilable), Example (SSCCE) for a PrimeFaces portlet project compatible with Liferay 6.2.
Once you get it deployed and working, add code for the p:fileUpload component and associated backing bean code similar to what we have in the PrimeFaces Applicant demo.
If you are able to reproduce the problem with the SSCCE, then upload the source as a ZIP to this project and we will try to reproduce it locally.
Kind Regards,
Neil
Jesus Vazquez Fernandez, modified 5 Years ago. New Member Posts: 2 Join Date: 3/20/20 Recent Posts
I saw that the number of temp files created depends on the portal-ext.properties config. We have multiple instances of liferay for testing, the instance deployed in my localhost, works fine with +1GB files, but in the preproduction Liferay Instance, the bean is never handled using the same portal-ext config. Can you explain which portal-ext config is required for upload big files (5GB for example) for de 4.1.3 bridge version? I have the parameter "com.liferay.faces.util.uploadedFileMaxSize", "10368709120" on my portlet also.
thumbnail
Neil Griffin, modified 5 Years ago. Liferay Legend Posts: 2655 Join Date: 7/27/05 Recent Posts
Since you are using Liferay 6.2, then I recommend that you look at the default values of file upload related settings in the portal.properties file.


Also, I recommend that you review the default file upload settings for liferay-faces-util (used by the bridge).


Also, there is an older blog post titled UploadPortletRequest and file size limits that refers to Liferay 6.2.


Finally, please upgrade to the latest version of Liferay Faces artifacts that we have available for Liferay 6.2:

- com.liferay.faces:com.liferay.faces.bridge.ext:3.0.1

- com.liferay.faces:com.liferay.faces.util:3.3.0

- com.liferay.faces:com.liferay.faces.bridge.impl:4.1.4

- com.liferay.faces:com.liferay.faces.bridge.api:4.1.0