Marklogic插入二进制内容需要很长时间

时间:2014-03-17 19:20:50

标签: java xquery marklogic

我需要在Marklogic 6中上传图像。我的App ID在DEV和QA env中部署,其中图像上传在DEV中正常工作但在QA中没有。在QA中尝试上传文件时,需要很长时间(5-10分钟),这通常需要几毫秒,有时上传失败并提供以下异常:

ERROR] 17 Mar 2014 14:36:53,564 MarkLogicPersitenceManager - Broken pipe
com.marklogic.xcc.exceptions.ServerConnectionException: Broken pipe
 [Session: user=user-name, cb=datastore [ContentSource: user=user-name, cb=datastore [provider: address=/172.11.11.11:1111, pool=1/64]]]
        at com.marklogic.xcc.impl.handlers.AbstractRequestController.runRequest(AbstractRequestController.java:110)
        at com.marklogic.xcc.impl.SessionImpl.insertContent(SessionImpl.java:194)
        at com.marklogic.xcc.impl.SessionImpl.insertContent(SessionImpl.java:222)
        at com.mhhhe.ecom.catalog.admin.persistence.ml.MarkLogicPersitenceManager.save(MarkLogicPersitenceManager.java:251)
        at com.mhhhe.ecom.catalog.admin.AdminResources.catalogSaveWithUriNew(

我使用以下Java代码上传文件。

ContentCreateOptions contentOptions = new ContentCreateOptions();
contentOptions.setFormatBinary();
Content content = ContentFactory.newContent(uri, stream,contentOptions);
session.insertContent(content);

尽管Dev和QA的配置几乎相同,但它在QA中不起作用。所以这看起来像Marklogic DB的问题。

您能否告诉我哪种配置问题可能导致此问题?

0 个答案:

没有答案