Thanks David

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Lee, David
Sent: Wednesday, November 30, 2011 5:02 PM
To: General MarkLogic Developer Discussion
Subject: Re: [MarkLogic Dev General] ServerConnectionException

FYI I run with these options which tends to reduce the errors.
But still do check on the 0 length file. It through me totally (I didnt
possibly believe *I* would have zero length XML files ! The Horror !  but
yes that is what consistently caused my problem ... it just started one day
and kept going ... )


-- Java options which make GC more smooth ... 

java -cp $CLASSPATH -Xmx1024m -Xms256m -XX:+UseConcMarkSweepGC



----------------------------------------
David A. Lee
Senior Principal Software Engineer
Epocrates, Inc.
[email protected]
812-482-5224

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Gary Larsen
Sent: Wednesday, November 30, 2011 4:32 PM
To: 'General MarkLogic Developer Discussion'
Subject: Re: [MarkLogic Dev General] ServerConnectionException

Thanks Mike. This will be tough to reproduce, but I'll take a closer look at
the Java options.

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Michael
Blakeley
Sent: Wednesday, November 30, 2011 4:15 PM
To: General MarkLogic Developer Discussion
Subject: Re: [MarkLogic Dev General] ServerConnectionException

It may be a timeout, possibly due to Java garbage collection. That can be a
problem with long-running Java processes.

You may be able to enable GC timing output to diagnose that. If you have
options for parallel or incremental GC, they may help.

-- Mike

On 30 Nov 2011, at 12:29 , Gary Larsen wrote:

> I have a Java XCC application which syncs the database with data from
another application.  This has been running for many weeks now without any
MarkLogic errors but recently ran into this:
>  
> com.marklogic.xcc.exceptions.ServerConnectionException: An established
connection was aborted by the software in your host machine
> [Session: user=Admin, cb=Netvisn [ContentSource: user=Admin, cb=Netvisn
[provider: address=server/137.136.22.61:8023, pool=0/64]]]
> [Client: XCC/4.2-2]
>                 at
com.marklogic.xcc.impl.handlers.AbstractRequestController.runRequest(Abstrac
tRequestController.java:116)
>                 at
com.marklogic.xcc.impl.SessionImpl.insertContent(SessionImpl.java:198)
>                 at
com.marklogic.xcc.impl.SessionImpl.insertContent(SessionImpl.java:226)
>                 at
com.envisn.nv.xmldb.MarkLogicHelper.storeFile(MarkLogicHelper.java:196)
> .
>                 at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.ja
va:886)
>                 at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:9
08)
>                 at java.lang.Thread.run(Thread.java:662)
> Caused by: java.io.IOException: An established connection was aborted by
the software in your host machine
>  
>  
> The server did recover from this (though it blew up the sync process).
All the documents are loaded from files and a zero byte file should not be
possible. 
>  
> Does the exception suggest that the cause was a problem with the file
system, or something else?
>  
> Thanks,
> gary
> _______________________________________________
> General mailing list
> [email protected]
> http://developer.marklogic.com/mailman/listinfo/general

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

_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general
_______________________________________________
General mailing list
[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