[MarkLogic Dev General] XDBC with XCC jar, parameter size limit?
bhartwig at reallysi.com
Wed Feb 1 06:25:08 PST 2012
Ideally, the XCC library version should match the server version. That aside, the following has helped me in the past.
Change the JVM options to use the concurrent low pause garbage collection option. Further, consider matching the minimum memory setting to the maximum memory setting to counter a slower startup time sometimes experienced when using this garbage collection option. E.g.,
export JAVA_OPTS="-server -XX:+UseConcMarkSweepGC -Xms8G -Xmx8G -XX:MaxPermSize=512M"
You may also avoid this condition by increasing the keep alive timeout. I believe the above is the preferred resolution though.
From: general-bounces at developer.marklogic.com [mailto:general-bounces at developer.marklogic.com] On Behalf Of Matthew MacMillan
Sent: Wednesday, February 01, 2012 9:16 AM
To: General MarkLogic Developer Discussion
Subject: Re: [MarkLogic Dev General] XDBC with XCC jar, parameter size limit?
I think we had that same error which pointed at not enough memory, suggest in first instance to increase heap size.
From: Josh Warner-Burke <jwburke at 42six.com<mailto:jwburke at 42six.com>>
To: general at developer.marklogic.com<mailto:general at developer.marklogic.com>
Sent: Wednesday, 1 February 2012, 14:14
Subject: [MarkLogic Dev General] XDBC with XCC jar, parameter size limit?
We have a java application which talks to Marklogic through the com.marklogic.xcc package and some custom code we wrote. The version of XCC is perhaps a bit old, version 4.1-7. Anyway we are having a problem passing in a large file through our DAL to a module. The module accepts both a string version and a binary version of the file. Works fine for small files, but with a file size of say 15M, when the procedure runs it takes a long time then times out with either an out of memory error or this:
ServerConnectionException: Premature EOF, partial header line read: ''
What I am wondering is if anyone has encountered this? Or if anyone knows about a bug in older versions which could cause this. Naturally I would like to upgrade XCC but it's not a high priority unless I know it will fix something. Thanks in advance.
(e): jwburke at 42six.com<mailto:jwburke at 42six.com>
General mailing list
General at developer.marklogic.com<mailto:General at developer.marklogic.com>
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the General