Reg : Setting Time Out
Thursday, 8 January 2015 · 2 messages
C
Chandrasekhar8 Jan 2015 06:58 #
Dear Christian
We are optimizing the collection database(5 GB DB SIZE) .After some time(30 minutes) we are getting the below message.
org.basex.core.BaseXException: Timeout exceeded.
We are not able to setting time out option.We are setting the time out as below mentioned
Context context = new Context();
context.globalopts.set(GlobalOptions.TIMEOUT,10);
context.globalopts.set(GlobalOptions.SERVERHOST, "localhost");
context.globalopts.set(GlobalOptions.SERVERPORT, 1984);
ClientSession ls = new ClientSession(context, "admin", "admin"); Suggest me the right way to setting the time out.
Thanks&Regards
Chandra
The information contained in this e-mail and any accompanying documents may contain information that is confidential or otherwise protected from disclosure. If you are not the intended recipient of this message, or if this message has been addressed to you in error, please immediately alert the sender by reply e-mail and then delete this message, including any attachments. Any dissemination, distribution or other use of the contents of this message by anyone other than the intended recipient is strictly prohibited.
CG
Christian Grün8 Jan 2015 17:16 #
Hi Chandra,
could you possibly provide me with the full stack trace? It may be output by using the -d command line flag, or may be found in the log files of BaseX.
Best,
Christian
Quoted text · Chandrasekhar · 40 lines
Thu, Jan 8, 2015 at 6:58 AM, Chandrasekhar <chandrasekhar.r at intense.in> wrote: > Dear Christian > > > We are optimizing the collection database(5 GB DB SIZE) > .After some time(30 minutes) we are getting the below message. > > > > org.basex.core.BaseXException: Timeout exceeded. > > > We are not able to setting time out option.We are setting the > time out as below mentioned > > > Context context = new Context(); > context.globalopts.set(GlobalOptions.TIMEOUT,10); > context.globalopts.set(GlobalOptions.SERVERHOST, "localhost"); > context.globalopts.set(GlobalOptions.SERVERPORT, 1984); > ClientSession ls = new ClientSession(context, "admin", "admin"); > > > Suggest me the right way to setting the time out. > > > > > Thanks&Regards > > Chandra > > The information contained in this e-mail and any accompanying documents may > contain information that is confidential or otherwise protected from > disclosure. If you are not the intended recipient of this message, or if > this message has been addressed to you in error, please immediately alert > the sender by reply e-mail and then delete this message, including any > attachments. Any dissemination, distribution or other use of the contents of > this message by anyone other than the intended recipient is strictly > prohibited.
Written for BaseX 7.9. BaseX may have changed since: please check the current documentation.
⚡Generated with XQuery