JVM crashes during Import from Word in Confluence
プラットフォームについて: サーバーと Data Center のみ。この記事は、サーバーおよび Data Center プラットフォームのアトラシアン製品にのみ適用されます。
問題
JVM crashes after attempting to import some Microsoft Word documents into Confluence using the Import form Word option.
The following appears in atlassian-confluence.log
2016-03-15 09:47:32,283 WARN [http-bio-8857-exec-15] [com.benryan.webwork.WordImportAction] executeFileUpload Failed to delete uploaded file /Users/person/instances/con57home/temp/upload_cbeeb5d3_176d_4655_a18c_08d216aa6987_00000001.tmp
-- referer: http://localhost:8857/confluence/pages/worddav/uploadimport.action?pageId=98307 | url: /confluence/pages/worddav/importword.action | userName: admin | action: importword | page: 98307
原因
We believe this error is related to the following JDK bugs:
- JDK-6996336 - JVM crash in recursive processCubic calls (libdcpr.so)
- JDK-6966105 - PathDasher.appendCubic crash
回避策
If you experience this problem regularly you can enable an Office Connector Canary that will check whether an import is likely to succeed before proceeding with the actual import. This workaround is available in Confluence 5.9.1 and later.
To enable the Office Connector Canary:
http://<yoursite>/admin/darkfeatures.action
に移動します。Paste the following dark feature key in the Enable dark feature field then hit Submit.
com.atlassian.confluence.officeconnector.canary
When a user attempts to import a file from Word, the Office Connector Canary will spawn a new JVM to try the document first. If the spawned JVM crashes we consider the document to unsafe and stop the import process. Users will see the following error in Confluence: "The uploaded file contains data which cannot be safely imported".
メモリに関する考慮事項
The Office Connector Canary process does consume additional memory. You can use the com.atlassian.confluence.officeconnector.canary.memory_value
system property to increase the amount of memory if necessary. It currently defaults to 1024mb. See Configuring System Properties for more information.