I'm hoping someone can answer my question because I've read the IIS.net article on this and I'm still confused. Basically, I want to set my website's application pool to restart every night at midnight. I've already set it to recycle periodically and that doesn't seem to fix the problem I intended it to fix...restarting manually does, however, and I would like it to restart every night.
I have gone to the IIS 8 Configuration Editor and I'm looking at the periodicRestart variable, but I don't know what values I'm supposed to put in the "schedule" or "time" fields. They have values of "(Count=0)" and "1.05:00:00", respectively, but I don't know what these are signifying or if they will even have the desired effect if I do, indeed, change them.
Please help, and thanks!
Put this in a .bat file and run as a scheduled task
iisreset [servername]
Related
I looking solution to my question. I download ISO of SystemRescueCD and I know how to add some paarameters to linux line but I dont know how to make it auto running menu.
In fact I put there DEFAULT directive which highlight menu position and that last think, how to automaticlly run ?
It seems as easy job. All what you need is edit a sysrescd_head.cfg file and put DEFAULT and TIMEOUT directive. Remeber that. Timeout takes values in 1/10 of seconds so '10' is in fact (10/10 = 1) one second waiting
So I did some private navigation on Firefox's Private mode (which shouldn't log anything) and eventually there's a string of something I've searched.
I want it gone, I used Rwipe and clean to get rid of it but no luck, Uninstalled Firefox and all its folders and ran rwipe plus CCleaner this time, no luck.
After that, I also cleared temp and %temp% folder but no luck either.
Funny thing is that I checked Firefox process (before uninstall) and there were no strings of what I searched up in there, those strings of Firefox were on explorer...
I also have prefetch and superfetch disabled.
I need help, I need those strings gone really quick..
Appreciate your time and help!
"string on explorer.exe" - not very useful. String where?
Try restarting explorer.exe. Don't do it while Process Hacker is running as administrator though, do it while it's running as standard rights or via Task Manager. If that doesn't work, try rebooting the system.
Either way, an elaboration would be helpful to provide a real solution if either of the above don't resolve the issue.
How do you go about debugging a non-responsive python/PyQt application in PyCharm?
I am an experienced programmer, but new to all thing python. I have been given a large application (36,000 lines), which works under Windows, to port to Linux.
Having made just a handful of changes for OS-specific stuff, when I run the application it comes up with its main window. But then after a few seconds it becomes dimmed, and when I close the window I am asked to confirm to end "the window is not responding".
(Aside: On a whim I decided to try running the app via sudo, and surprisingly it works fine. I have tried doing strace running as root versus non-root, but I'm fairly sure there is nothing obvious in the way of file accesses/permissions etc. that differs. This may be a clue, but just as likely to be a red-herring, e.g. if it's an "uninitialized variable".)
If I debug it inside PyCharm, at that point I expect to click the "Pause Program" button, so that I can get a trace back and begin to see where it is in the code, and start stepping or whatever. However, that button does nothing at this stage? Maybe it only "works" when on "a python instruction"?
If I force a core dump (from the keyboard) and examine with gdb, I can see that the stack frame shows it is way down inside libQtCore/libQtGui, in processEvents on a call to read.
So how do I begin to go about debugging why it is (presumably) busy doing something at this point, or at least not responding? Any tips would be welcome. I do hope this question will not fall foul of SO's "too general" policy, any tips to get someone going on debugging a "non-responsive" program would be welcome.
To answer my own question, since no responses seem to be forthcoming.
In this case, the problem turned out to lie in a file which is imported into other files, named pyperclip.py. That had code outside of any function, and in a path through the source executed under Linux but I think not under Windows, which included:
app = PyQt4.QtGui.QApplication([])
cb = PyQt4.QtGui.QApplication.clipboard()
Clearly some attempt to gain a clipboard object. For whatever reason, this appears to work when run as su, but when run as the logged on user it causes the whole application to "hang". Removing those two lines solved the unresponsiveness.
In terms of what I learnt from this for debugging unresponsive applications: you need to debug not from the entry point of the program, as I would have expected, but rather right from the start of each file, and actually step into each import line just in case it is executing some initial code. Horrible!
We use Perforce, recent build (2015.2, we could update to newer if need), on Win2012-R2 server.
We would like full text search to easily find strings across the code base (.cs, .aspx, .less, .resx, etc)
What is an appropriate approach?
The answer should be: p4search
However, where it could be a cool 20-30 minute setup, plan on taking 4+ hours over 1-2 days.
Worse, p4search has been abandoned by perforce. It does not install our run properly on current linux (e.g. Centos 7), requiring edits to startup scripts and general hassle. The indexer gets hung on some files, rdeep diagnostics.
After screwing around w it for a week, we gave up.
So the answer is:
1) Use Open Grok: https://opengrok.github.io/OpenGrok/
or
2) Prepare for a long haul to set up p4search (which, fwiw, also requires perforce Swarm, so you will be setting that up also)
There are lots of such tools out there. Here are two you could start investigating:
Open Grok: https://opengrok.github.io/OpenGrok/
P4Search: https://www.perforce.com/company/newsletter/2014/02/p4-search-search-perforce-server
There is also the built-in p4 grep (perforce docs), with some limitations, see e.g. this good answer to another question, in the server since 2010.1.
I was working on a computer which had Avast software running on it. I tried to open an executable (CoolEdit) which Avast opened in sandbox mode. I recorded a lot of stuff with CoolEdit and closed it down. The sandbox operates in a mode that says : Attention: Any data remaining when the session is closed will not be saved, or something to that effect. I saved all my data and was even able to see it before I closed CoolEdit down. Now I find it is not there. My questions:
1. What is going on?
2. Is the data lost or is it hiding in some folder?
3. Is there a way to recover that data?
Once you have closed the session down (by closing the application that is being run in the sandbox), it is unlikely that the data can be recovered. However, when the application is running in the sandbox, you will see all files as being saved in the locations that you have saved them (only through the dialog boxes of the application though. In reality, the files are not being stored there at all). Avast creates a directory called ## awsnx or something on those lines. All the data that has been saved in the session will be saved in a sub-folder within that directory. Please note that this data in the sub-folder will exist only as long as the session lasts. Once the session is over, all that data will be lost.
Word of advice to anyone using Avast. Disable this feature. You will lose anything that it deems suspicious, without giving you any way to recover it.
Say for instance, your Email. It for some reason thinks today "Ahha suspicious!" and sandboxes it while it scans it.. Oh hey nothing there.. I'll close it out of sandbox and run it normally.... Minues the 20-30 Emails you received as it was screwing around with your Email application.
Gone. No recovery.
As it is, for this I am uninstalling avast. I'd rather put up with mcaffee.