0

I have an Excel 2007 file (.xlsx) of about 6 MB filesize.

From within our company network I cannot upload this 6 MB file into Liferay's document library. Neither the GUI-based upload form works, nor the webdav-based upload. If I rename the file to (.xls) then I can upload it in a couple of seconds, there is no problem whatsoever.

However, In the liferay doclib backend, I also cannot rename back the file from .xls to .xlsx. If I try to do so, then the server hangs for a while. There is no entry in the error log. When I try to do the renaming on a dev server/my local machine, the liferay server consumes all available memory and I have to run a "killall java" command from an unresponsive terminal.

I can, however, upload .xlsx files of, say, 2 MB size. All filename extensions are allowed to be uploaded. Only "larger" .xlsx files are problematic.

liferay 6.0.6

Used memory:    176.528.048 Bytes
Total memory:   283.590.656 Bytes
maximum memory:     1.069.416.448 Bytes 

env.CATALINA_HOME   /opt/liferay-portal-6.0.6/tomcat-6.0.29
env.CATALINA_OPTS   -Dorg.apache.jasper.runtime.BodyContentImpl.LIMIT_BUFFER=true 

JAVA_OPTS="-Xms128m -Xmx1024m  -XX:PermSize=42m -XX:MaxPermSize=256m -Dfile.encoding=UTF8 -Duser.timezone=GMT+2 -Djava.security.auth.login.config=$CATALINA_HOME/conf/jaas.config -Dorg.apache.catalina.loader.WebappClassLoader.ENABLE_CLEAR_REFERENCES=false -Dexternal-properties=portal-developer.properties -XX:+CMSClassUnloadingEnabled -XX:+UseConcMarkSweepGC -XX:+UseCompressedOops

WHat makes .xlsx files so special?

4

1 に答える 1

0

トリッキーな質問 - コントロール パネル -> サーバー管理 -> ファイルのアップロード -> ドキュメント ライブラリ - 最大ファイルと許可される拡張子で最大ファイル サイズの設定を変更しようとしましたか。

また、一時保存ディレクトリを追加すると役立つかどうかも確認してください。

于 2012-08-01T10:35:46.520 に答える