Hi, Josh,

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.

-Brent

From: [email protected] 
[mailto:[email protected]] 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 <[email protected]<mailto:[email protected]>>
To: [email protected]<mailto:[email protected]>
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:

java.lang.RuntimeException: com.marklogic.xcc.exceptions.
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.


--
Josh Warner-Burke
42SIX Solutions
(m): 410-493-4362
(e): [email protected]<mailto:[email protected]>


_______________________________________________
General mailing list
[email protected]<mailto:[email protected]>
http://developer.marklogic.com/mailman/listinfo/general

_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to