[SERVER-9343] Mongo crashed Created: 12/Apr/13  Updated: 22/Jul/13  Resolved: 16/Apr/13

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Blocker - P1
Reporter: Alexander Assignee: Stennie Steneker (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Fri Apr 12 19:57:22.135 [initandlisten] MongoDB starting : pid=17744 port=27017 dbpath=/var/lib/mongodb 64-bit host=rymmedia
Fri Apr 12 19:57:22.135 [initandlisten] db version v2.4.1
Fri Apr 12 19:57:22.135 [initandlisten] git version: 1560959e9ce11a693be8b4d0d160d633eee75110
Fri Apr 12 19:57:22.135 [initandlisten] build info: Linux ip-10-2-29-40 2.6.21.7-2.ec2.v1.2.fc8xen #1 SMP Fri Nov 20 17:48:28 EST 2009 x86_64 BOOST_LIB_VERSION=1_49
Fri Apr 12 19:57:22.136 [initandlisten] allocator: tcmalloc
Fri Apr 12 19:57:22.136 [initandlisten] options:

{ bind_ip: "127.0.0.1", config: "/etc/mongodb.conf", dbpath: "/var/lib/mongodb", logpath: "/var/log/mongodb/mongodb.log", rest: "true" }

Attachments: File mongodb.log.2013-04-12T20-27-32    
Operating System: ALL
Participants:

 Description   

Mongo crashed with message in log

# 
# Fatal error in v8::Context::New()
# V8 is no longer usable
#

Reporter: Alexander
E-mail: rym@bk.ru



 Comments   
Comment by Ian Whalen (Inactive) [ 22/Jul/13 ]

vmattila, since this ticket has been closed it would be good if you could open a new ticket with the details of your problem (referencing this ticket if appropriate) so that we can continue the conversation and its resolution there.

Comment by Ville Mattila [ 18/Jul/13 ]

Tonight the crash has been very frequent.

I have a replica set setup with two nodes, both running locally on my development box. The primary is that crashes, the logged message is "Fatal error in v8::Context::New()".

The seems to happen always after db.collection.remove() operation where I delete all records from the collection over PHP (mongo 1.4.1). The collection I clear contains only 20-30 small records, no indexes.

Comment by Ville Mattila [ 18/Jul/13 ]

This error is still occassionally encountered on my local virtual machine with following config.

$ uname -a
Linux ubuntu 3.8.0-26-generic #38-Ubuntu SMP Mon Jun 17 21:46:08 UTC 2013 i686 i686 i686 GNU/Linux

$ ulimit -v
unlimited

$ mongod --version
db version v2.4.4
Thu Jul 18 13:38:41.817 git version: 4ec1fb96702c9d4c57b1e06dd34eb73a16e407d2

Comment by Stennie Steneker (Inactive) [ 16/Apr/13 ]

Hi Alexander,

Thank you for confirming that the ulimit change worked.

A virtual memory ulimit of 3327200 seems particularly low; it's probable that your mongod memory footprint has increased enough to tip you over that limit. Perhaps the limit had been previously adjusted but was reset on a reboot or upgrade.

Per the Linux production notes in the MongoDB manual, the recommended setting for ulimit -v is unlimited.

Limits that are set too low may cause operational or performance issues.

Thanks,
Stephen

Comment by Alexander [ 16/Apr/13 ]

Yes. It seems to work fine after increasing the address space ulimit. But in previous version of mongo(2.0.1) it worked fine without any changes.

Comment by Stennie Steneker (Inactive) [ 16/Apr/13 ]

Hi Alexander,

Do you have any update after increasing the address space ulimit?

Thanks,
Stephen

Comment by Alexander [ 13/Apr/13 ]

I'll try and then report if there'll be any changes

Comment by Daniel Pasette (Inactive) [ 13/Apr/13 ]

can you set it to unlimited?
ulimit -v unlimited

Comment by Alexander [ 13/Apr/13 ]

Yes, I have:
> ulimit -v
3327200

Comment by Daniel Pasette (Inactive) [ 13/Apr/13 ]

Do you have a limit on address space set (check with ulimit -v)?

Comment by Alexander [ 13/Apr/13 ]

Working under system:

> uname -a
Linux 2.6.37.6 #5 SMP Sun Jul 3 23:05:47 CEST 2011 x86_64 x86_64 x86_64 GNU/Linux

> php -v
PHP 5.4.9 (cli) (built: Dec 20 2012 21:48:07)
Copyright (c) 1997-2012 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2012 Zend Technologies
with Zend Debugger v5.3, Copyright (c) 1999-2010, by Zend Technologies

> php --ri mongo

mongo

MongoDB Support => enabled
Version => 1.3.7

Directive => Local Value => Master Value
mongo.default_host => localhost => localhost
mongo.default_port => 27017 => 27017
mongo.chunk_size => 262144 => 262144
mongo.cmd => $ => $
mongo.utf8 => 1 => 1
mongo.native_long => 0 => 0
mongo.long_as_object => 0 => 0
mongo.allow_empty_keys => 0 => 0
mongo.ping_interval => 5 => 5
mongo.is_master_interval => 15 => 15

Generated at Thu Feb 08 03:20:07 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.