There are quite number of software running on my server: httpd, varnish, mysql, memcache, java..
Each of them is using a part of the virtual memory and varnish was configured to be allocated 3GB of memory to run.
Due to high traffic load which is 100K, our server ran out of memory and oom-killer is invoked. We've to reboot the server.
We have 8GB of Virtual Memory and due to some reason we cannot extend to larger memory.
My question is - Is there any automated script, which will monitor how much virtual memory left and based upon certain criteria, lets say if 500MB left than restart the server automatically?
I do know this is not the proper solution but we have to do it, otherwise we don't know when server will get OOM and by the time we know and restart the server, we lost our visiting users.
I am setting up Remote Desktop Services for use by one of our remote offices. The workstations at the remote office are all Windows 7 Pro, joined to the domain. There is nothing installed on the local workstation othern than the Win7 OS. The remote and main office are linked via VPN.
The workers will login to the local workstation, using their domain login, then right now double click an icon on the desktop which will do the RDP to the Remote Desktop Server. This does work fine, but requires some user education.
Is there a way that when the user logs into the local workstation, it will start the RDP session right away and pass their username/password through as well?
Would using a thin client PC do what I am asking?
Thanks.
I have a rackspace server that I have been renting to run my personal projects upon. Since I am cheap, it has 256Mb of RAM and honestly can't handle alot. Every once in a while, when there is a sharp uptick in traffic, the server decides to start killing processes and it seems that mysqld is a popular one for it to kill. I try to visit my site and am greeted with the message that there was an error establishing the database connection. Inspection of the logs reveals that mysqld was killed due to lack of memory.
Since I am still as poor as I was yesterday and don't want to upgrade my rackspace VM's RAM, is there a way I can tell it to automagically restart mysqld when it dies?
I have a thought to use something like crontab, but alas, I don't know exactly what to do there either. I guess I am product of the "Linux on your desktop" generation since I can do most things on my desktop and laptop (which run Linux almost exclusively), but still lack a lot of server administration skills for Linux.
The server runs CentOS 6.3
I have a template (sleep) in Eclipse 4.2.1 that should expand to
try { Thread.sleep(1000); } catch (Exception e) {}
I want Eclipse to add it as one line, just as I put it in the template. However, Eclipse autoformats it after inserting to:
try {
Thread.sleep(1000);
} catch (Exception e) {
}
I have tried @formatter:off, but that does not work. I have code cleanup switched off.
Is there any way to disable formatting for all templates, since the only templates I use are one-liners anyway?
I know i can use Domain Tools and the like for checking if a domain name is available but is there some way to be alerted when a certain domain name becomes available that is currently taken?
When I type "svn add path/to/somefile..." and tab to autocomplete, the system should ONLY complete files/directories that are NOT under currently under SVN control. Likewise, when I commit, remove or resolve files, the tab completion should only complete files that are relevant to what I'm doing. This is especially important in SVN where I can waste thousands of keystrokes typing long path and file names, but it of applies to other programs.
I know bash has a bash_completion file that can be used to programatically alter this behaviour but I've not found a decent example of SVN completion which actually completes file names rather than SVN command names.
My question is: Does anyone have such a setup? Does anyone use a different shell or tool that does something similar? Has anyone given this any thought?
I am using ubuntu 10.04. Now the ubuntu is performing as i want. Is there any thing like system restore in ubuntu.
SO that if i upgrade the ubuntu softwares and it stops working and i can restore the system to previous state.
thanks
Hello
I have a setup of exim4 on domain1 in front of other server, domain2 (with sendmail). Second server have no direct access to internet, so domain1 is MX for domain2. And domain2 is set as hubbed_host in the exim4 on domain1.
When spammer sends message for no_such_user@domain2, its sendmail do a reject:
550 5.1.1 <no_such_user@domain2>... User unknown
Then, exim4 at domain1 do an auto-reply like this:
This message was created automatically by mail delivery software.
A message that you sent could not be delivered to one or more of its
recipients. This is a permanent error. The following address(es) failed:
no_such_user@domain2
SMTP error from remote mail server after RCPT TO:<no_such_user@domain2>:
host 10.0.0.1 [10.0.0.1]: 550 5.1.1 <no_such_user@domain2>... User
unknown
The spammers uses fake "from" field, and such generated messages are frozen by exim for a long time.
How can I disable some or all autoreplies from exim4? Ideally, I want a filter,
if message was not delivered with error "User unknown" than don't generate any autoreply from mailer-daemon.
Thanks!
For each URL on my site, I'm auto-redirecting according to header accept language. The site arch is
English version: http://mydomain.com/page
Spanish version http://es.mydomaina.com/page
etc..
The english version is displayed unless I'm seeing a specific language other than en and that I support in the header, and then a redirect occurs.
Google says this:
For language/country selectors or auto-redirecting homepages, you
should add an annotation for the hreflang value "x-default" as well:
My pages aren't language selectors, nor are they the homepage. But I am auto-redirecting.
My question is, should my english version be hreflang="x-default" or/and hrefland="en"?
for each url on my site, I'm auto-redirecting according to header accept language. The site arch is
english version: http://mydomain.com/page
spanish version http://es.mydomaina.com/page
etc..
The english version is displayed unless I'm seeing a specific language other than en and that I support in the header, and then a redirect occurs.
Google says this:
For language/country selectors or auto-redirecting homepages, you
should add an annotation for the hreflang value "x-default" as well:
My pages aren't language selectors, nor are they the homepage. But I am auto-redirecting.
My question is, should my english version be hreflang="x-default" or/and hrefland="en"?
I would like to know how to speedup the perforce auto resolve when doing integration (merge yours and theirs if no conflicts exists).
Currently is taking hours for ~5000 files when running it using a proxy server even if the proxy server has the files pre-cached.
Also p4v interface doesn't give you any hint regarding the progress of the task, you do not know if it will finish in a second or next year.
Hi,
How can I make work item to auto tansit from new to assigned state when I populate Assigned To field.
Ie. I have reported a bug so its state is new.
Now I populate (select from dropdown) the Assigned To field, and I want it to automatically transit to Assigned state (Active state).
Please help.
I am continuously appending text to the content of my UITextView and would like to auto-scroll to the latest update, only if if the UITextView has already been scrolled to the bottom. Any ideas on how this could be implemented?
I wish to pass to Hibernate's SessionFactory
hibernate.hbm2ddl.auto=update
and see in log file generated sql statements. Is it possible w/o java coding (know how to achieve the result with SchemaExport, but hope that hibernate has "in box" solution)
Hi
question1 :
I am using global temp tables in sql server 2008
but once my connection is closed this temp is dropped
is there any way to diable auto drop
Question2 :
If two connections are accesstion same global temp table and another connection is
trying to delete that global temp table,does sql server handles this synchronization
properly?
from
nayeem khan
I am using a notes client(v 7.0). I created a mail account with email id [email protected] in this client(obviously on domino server also). I want to auto reply to the mail which is sent to [email protected] with same subject line which must be appended with ";SUCCESS" at the end of subject line.
Hi folks,
One of the ad agencies I code for had me set up an alternate scrolling solution because you know how designers hate things that just work but aren't beautiful.
So, this is married in places to their CMS. What I have not been able to sort yet is how to hide the scrolling UI when overflow:auto is not triggered by the CMS content.
Any ideas?
TIA
JG
I used Python to generate a CSV file. But when I open it in Excel, Excel will auto recognize a string into a number if it could be converted.
e.g.33E105, which is actually an ID, not a number.
How to disable this in Excel while opening a CSV file? Or I need to resort to a excel-python library to output a excel file and specify the format myself?
Thanks!
I have to design a website where user can update their status, just like facebook and twitter and other social networking sites.
Now my requirement is to refresh the feed with new user updates. Ex: when the new status comes facebook automatically add that on the top of the feed. on the other hand twitter shows the number of updates which is ready to be load.
both ways are acceptable to me
Now, I have to decide what is the best way to achieve this functionality. I am open to use ASP.NET. So I am confused that regular repeater control with timer and auto refresh or any other way? (I am wondering that if I set repeater for auto update and meanwhile if user is performing some action on any status it will lost).
or do I need to change my framework from ASP.NET to ASP.NET MVC (I am little afraid with MVC as I have very less knowledge regarding it and I know it has a learning curve to master ajax/Jquery things)
Any suggestion how I can I achieve it in a better and feasible way?
EDIT1 I am not looking for a code but I want advice to achieve this. Supporting URL's would be appreciated.
EDIT2 I am open to JQuery which can regularly check the database and fill the section. But my concern is this that if user is updating any comment and want to load/feed is automatically generated. his textbox text shouldn't be disappear (just like facebook, twitter or Linkedin)
EDIT3 I have seen that on Stack overflow when any other user has modified the question/answer, I got notification like this question/answer is modified. and when I clicked on that notification only that section got reloaded. I am curious to know how to achieve this functionality. So that when user is commenting on a status/post and if meanwhile someone has updated the content then it would show the other user comment.
Edit4 Could someone please recommend me an example of ASP.NET MVC 3+ which can do similar kind of activity (i.e. one input box and once user insert an text it will add the item in the list (with JQuery).
I would like to know if there is a way that I can have the time be auto filled when the user enters 10 I then want it to show 10:00. how can I do this?
I'm using the Acegi Security plugin for Grails, and authentication via LDAP.
The application logs show that on login, we can authenticate the user and get their roles via LDAP, but the login fails because the User Details cannot be found in the application's database.
Is there a way to auto create and save a basic User Details domain object if one doesn't already exit?