How do you handle exceptions?

16 views
Skip to first unread message

Nilanjan Bhattacharya

unread,
Aug 11, 2013, 6:08:15 AM8/11/13
to couc...@googlegroups.com
I don't see any documentation on handling exceptions in couchrest.  Am I missing something?

I querying a view which returns around 10,000 documents.  On Windows this works. On Ubuntu, the call to 'view' ends with the message 'killed'.

- Nilanjan

Samuel Lown

unread,
Aug 14, 2013, 12:05:04 PM8/14/13
to couc...@googlegroups.com
Hi Nilanjan,

Errors are generally handled by underlying RestClient. So you end up with exceptions like RestClient::ResourceNotFound or RestClient::Timeout.

However, in the case of you're large view and the 'killed' message, this is probably because your Ubuntu machine is low on memory. The Linux kernel will automatically kill a process that is consuming a lot of memory and the system is running low.

You're probably running on a small VPS, so either increase the machine's memory, or add a swap file.

Cheers,
sam




--
You received this message because you are subscribed to the Google Groups "CouchRest" group.
To unsubscribe from this group and stop receiving emails from it, send an email to couchrest+...@googlegroups.com.
To post to this group, send email to couc...@googlegroups.com.
Visit this group at http://groups.google.com/group/couchrest.
For more options, visit https://groups.google.com/groups/opt_out.



--
www.samlown.com
www.autofiscal.com
www.planetaki.com/sam
Reply all
Reply to author
Forward
0 new messages