Skip to content
This repository was archived by the owner on Mar 18, 2022. It is now read-only.
This repository was archived by the owner on Mar 18, 2022. It is now read-only.

Mysql::Error: Lost connection to MySQL server #50

@marino-mrc

Description

@marino-mrc

Hi, I have about 100 ap monitored with OWGM on a ubuntu vm (4GB ram, dual core). Randomly I have crashes from backgroudrb daemon. Errors are:
"Mysql::Error: MySQL server has gone away: SELECT alerts.* FROM alerts WHERE alerts.sent = 0 AND alerts.access_point_id = 102"
...
/home/ubuntu/.rvm/rubies/ruby-1.8.7-p374/lib/ruby/1.8/open3.rb:59:in fork': Cannot allocate memory - fork(2) (Errno::ENOMEM) ... /home/ubuntu/.rvm/gems/ruby-1.8.7-p374/gems/activerecord-3.0.9/lib/active_record/connection_adapters/mysql_adapter.rb:614:inreal_connect': Can't create UNIX socket (24) (Mysql::Error)

It seems a problem with memory (too much used), but it uses 4GB of ram for 100 ap? How is this possible? Is there some tuning to do for mysql server?
Please, could you give me some advises?
Thank you

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions