I'm using new relic to monitor my website and this method is the bottleneck on 80% of my web requests, even on simple GET requests, what does this do?
Dude which version are you using ?
It was a known issue in previous versions.
Upgrade to their latest agent (version 2.0.9.15) - is now available and should fix this issue.
Related
As far as I understand this isn't supported in OkHttp 2.0. I have tried it with no luck so far...
Are there any plans to support this in the near future?
No plans at the moment. Open an issue in the projects issue tracker to start the conversation!
It looks like there are a number of questions already open on this topic, but I believe mine might be different. My setup:
1 Azure Cache Worker Role
1 Web Role
Up until about a week ago, they existed in harmony, until I tried to upgrade to Azure caching 2.1. Once I did that, I was afflicted with the "No such host is known" problem that seems to have affected many developers out there. I found many questions and sites that directed me to upgrade my Azure SDK installation to the new 2.1 version. I have done all of these things:
Install newest Azure SDK 2.1
Uninstall Azure SDK 2.0
Uninstall and Reinstall Azure Caching 2.1
Triple check configuration of all my caching settings
Triple check that all references are pointing to the newest versions and not the old ones
Upgrade my Azure Project to 2.1 by right-click, going to Properties, and clicking Upgrade
and I am still getting the following (My Error):
Exception type: SocketException
Exception message: No such host is known
at System.Net.Dns.HostResolutionEndHelper(IAsyncResult asyncResult)
This is different than the more typical error that most other questions and sites are showing, which is (More commonly reported error, not mine):
No such host is known
Exception message: No such host is known
at Microsoft.ApplicationServer.Caching.AsyncResultNoResult.EndInvoke()
I am about 30 hours into troubleshooting this, and could really use some help. Maybe I am just missing some step about the upgrade of the SDK? Somehow maybe sneakily it is still using an old version of a DLL? Is there some foolproof way to check this besides looking at the path of every reference in the project (which I have already done, and they all match up)?
Not really an answer but some comments which might help you diagnose the problem:
Visual Studio 2012/Update 3 - Please ensure that you have latest updates applied to VS. We had gone through similar problems and this was one of the things that helped us.
Collect lots of cache diagnostics data - In your cache configuration section, change the Microsoft.WindowsAzure.Plugins.Caching.DiagnosticLevel value to 4 in your cache worker role's configuration section. After you do that, add the following lines of code in your cache worker role's OnStart() method:
DiagnosticMonitorConfiguration dmConfig = DiagnosticMonitor.GetDefaultInitialConfiguration();
// Configure the collection of cache diagnostic data.
CacheDiagnostics.ConfigureDiagnostics(dmConfig);
DiagnosticMonitor.Start("Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString",
dmConfig);
return base.OnStart();
Hopefully this should give you an idea about what exactly is going on.
This also is not a direct answer to your problem but I think it may prove helpful to resolve your situation.
I've got this exception when I run my hosted service in the compute emulator and the cache was disabled on purpose -- in previous version of Windows Azure Caching an exception would be thrown on DataCacheFactory construction and I would handle it properly, while with version 2.1 (and Azure SDK 2.1) the DataCacheFactory is constructed without errors but then I've got stuck on DataCache construction for 3 minutes before the exception you mention is thrown.
I've used the procedure described by Gaurav Mantri in his answer and I've been able to discover that in previous versions of Windows Azure Caching the DataCacheFactory would throw an exception if the cache role was not found in the csdef, while in 2.1 it would consider the cache role name as an address in the network -- thus causing the 3 minute wait and the subsequent exception.
I've thus adapted my code to detect this new behavior -- for more detail see this SO question
Being new to the Windows server platform I need some input to figure out which way is the best to rotate the apache log files. The server version is Apache/2.0.47 (Win32).
Apache is shipped with the rotatelogs.exe. I found this (rather) old post http://www.sitebuddy.com/Apache/Cat/Logging saying
Conclusion: It is unusable and dangerous (it will eat up all your
memory/file handlers ...etc...).
You can not even use rotatelogs.exe on 4+ sites, Apache will
lockup when starting (tested on Apache 2.2.0).
Same guy has created a dll-file http://www.sitebuddy.com/mod_log_rotate which I'm not to sure that our hosting company will be to happy to implement on the production servers.
So since we are running this rather old version of Apache (which I'm stuck with, since it is really the IBM HTTP Server shipped with WebSphere) I'm afraid of the rotatelog.exe, anyone aware of what would be the best option to implement?
Our hosting partner decided not to allow usage of rotatelogs.exe since they have had some issues for other customers. Therefore the solution was to create a PowerShell-script, that stopped the service, rotated the logs and started the service again.
Have been using Savon for my webservice stuff so far, but need to talk to a more "secure" service now, needing WS Addressing and WS Security Extensions.
Have started to extend this fork of Savon to handle it, but then found WSO2 WSF/Ruby - so wondering if anyone has any experience of it, pros/cons etc. That is, is it worth my switching to it? I cant see much out there about it, besides on their own site - their forums seem awfully quiet, which does not bode well.
Currently dev on OSX/Snow Leopard, deploying on CentOS.
Thanks in advance,
Chris
It does not seem so (from the lack of replies...)
I have inherited a Windows Server and I have to deploy a django app on it.
Have anyone tried to benchmark http servers with django support on this platform?
Which one is fastest?
Use-case of my application would be:
not so much writes to db
heavy usage of admin panel
display tons of results
Have you looked at either wamp or xampp? They both deliver Apache/MySQL/PHP-and-Perl on a Windows platform. But you need more because neither includes Python. See this SO thread for how to proceed from there. Note, you may encounter problems. See this SO thread for an example.
Ps. Personally, I would just get a an account that supports Django (e.g. webfaction.com) and not screw around with this.
I run a Django site on Windows using Apache. I've posted a write up about some of the hurdles that you're going to face.