Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Mon Jul 01, 2013 1:29 pm 
Offline
Newbie

Joined: Fri Jun 28, 2013 4:16 pm
Posts: 3
Hello, for the past few days I've been in need of downloaded some items onto my server. I've been having problems connecting through PuTTy and likes however, as I keep getting a 'connection refused' error whenever I try. I've been following the guide to a T, but no luck. After sending in a ticket I've got news that apparently I'm OoMing. Lish has confirmed it. I'm guessing that's why I'm not able to connect to the server? I'm wondering if this indeed the case, and how can I go about fixing it?


Top
   
PostPosted: Mon Jul 01, 2013 1:54 pm 
Offline
Senior Newbie

Joined: Sat May 14, 2011 5:28 am
Posts: 14
Most obvious point of call would be to tone down the amount of childs and maxclients your webserver is running, lower memory limits for php (if possible, wordpress and other software will fail to work without enough memory)

Turn off keepalive or lower the timeout

Take a look at the configs for mysql on "small" systems, if your traffic allows, /usr/share/mysql/my-small.cnf

using top/htop should help you pin down what exactly is eating all your ram


Top
   
PostPosted: Mon Jul 01, 2013 2:38 pm 
Offline
Newbie

Joined: Fri Jun 28, 2013 4:16 pm
Posts: 3
Wow... Well, if I'm not the clueless newbie.

I'm sorry. I have no idea what those things are and how to toggle them. Do you have any sites or anything where I can read up on them?


Top
   
PostPosted: Mon Jul 01, 2013 2:48 pm 
Offline
Senior Newbie

Joined: Sat May 14, 2011 5:28 am
Posts: 14
If your using apache, you can find the configs in /etc/apache2/ usually called httpd.conf (or similar).

You can find the php config at /etc/php5/apache2/php.ini you'll find the option memory_limit in there.

output of top/htop would be handy to actually pin point what is eating your ram. Everything i've said so far is just assumption that your using apache and thats what is eating the ram (which is the likely cause if you are using apache)


Top
   
PostPosted: Tue Jul 02, 2013 2:24 pm 
Offline
Newbie

Joined: Fri Jun 28, 2013 4:16 pm
Posts: 3
Okay, memory problem has been solved. Thanks.

Unfortunately, I'm still have problems with the 'Connection Refused' pop up. Any ideas?


Top
   
PostPosted: Tue Jul 02, 2013 4:58 pm 
Offline
Senior Newbie

Joined: Sat May 14, 2011 5:28 am
Posts: 14
Check your ssh daemon is running, it might have been killed due to no memory being available.
Code:
ps aux | grep ssh


If thats running, check its actually listening properly.
Code:
netstat -tapn | grep 22
Or w/e port you have ssh running on.

If its listening, check your firewall, syslogs, etc. for any errors


Top
   
PostPosted: Tue Jul 02, 2013 4:58 pm 
Offline
Senior Member
User avatar

Joined: Thu Jun 16, 2011 8:24 am
Posts: 412
Location: Cyberspace
Log in via lish and make sure sshd is running.

If there's a firewall setup wherever you're connecting from, make sure it allows connections through whichever port you run sshd on (default is port 22).

If you've tried configuring iptables, check that too, ensure it allows incoming connections on your sshd port.

_________________
Kris the Piki Geeker


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group