newrelic

Renaming Unicorn processes

心已入冬 提交于 2020-01-16 22:00:34
问题 I run a Linux server which hosts multiple small Rails apps (for better or worse). The problem is that all apps show up the same in ps (see output) and combined in New Relic's server monitoring (see screenshot). $ ps -A ... 25902 ? 00:07:54 ruby 25905 ? 00:07:43 ruby 25914 ? 00:07:59 ruby 25916 ? 00:07:48 ruby 25931 ? 00:08:12 ruby 25935 ? 00:07:04 ruby 28316 ? 00:10:25 ruby 28319 ? 00:09:47 ruby 28548 ? 00:06:01 ruby 28550 ? 00:06:04 ruby 28553 ? 00:05:58 ruby 28561 ? 00:05:55 ruby 28855 ? 00

AcquireRequestState vs PreExecuteRequestHandler

左心房为你撑大大i 提交于 2020-01-10 17:58:10
问题 We picked up quite a high number of ajax calls taking a significant amount of time in AcquireRequestState, in our travels we stumbled upon the session locking gem in ASP.Net so we implemented a custom session state handler (Based on link below). After making the change and deploying it, we saw a very sharp drop in AcquireRequestState but it had been replaced with PreExecuteRequestHandler. This morning it suddenly dawned on me that we had included OWIN which was probably the reason for the

akka-http not showing metrics in NewRelic

我只是一个虾纸丫 提交于 2020-01-07 01:49:29
问题 I'm trying to monitor my akka-http Rest web-service with NewRelic The application has only one GET url (defined with akka-http) I have the following configuration in the plugins.sbt logLevel := Level.Warn addSbtPlugin("com.typesafe.sbt" % "sbt-native-packager" % "1.0.4") addSbtPlugin("com.gilt.sbt" % "sbt-newrelic" % "0.1.4") I have the following configuration in the build.sbt scalaVersion := "2.11.7" name := "recommender-api" ...blablabla... libraryDependencies += "com.typesafe.akka" % "akka

New Relic Custom Metrics - Cannot get it to work

若如初见. 提交于 2020-01-06 11:45:24
问题 I've tried to follow the New Relic documentation at https://docs.newrelic.com/docs/dotnet/dotnet-agent-custom-metrics for setting up custom metrics on our web application but cannot get it to work. In the New Relic trace we see lots of Application code (in System.Web.Mvc.MvcHandler.BeginProcessRequest()) - Our agent can't see what is happening in your .NET code. Consult our documentation to find out how to add custom metrics to your app. So, I've created a MyInstrumentation.xml file, put it

Newrelic + node.js + socket.io

旧城冷巷雨未停 提交于 2020-01-03 05:13:09
问题 Newrelic announced support for node.js applications on Oct 24, 2013. I set up monitoring for my node.js server. It is a service that talks to Client via socket.io. Now, all the requests like this /socket.io/*/xhr-polling/40pt1SBvasfDuwctz4Ma for the service appear to take 20.000 seconds. Is there a way to set up newrelic so it would correctly show request times served by socket.io? 回答1: New Relic gives you the option to ignore a rule for something exactly like this. For example you would want

Memcached Performance

有些话、适合烂在心里 提交于 2020-01-01 05:48:12
问题 I feel the speed of Memcached in my website is slower than Mysql queries. Please see the screenshot of performance of my website I got from New Relic. I don't know how to optimize memcached in my CentOS server. Please see the configuration and performance screenshots of Memcached. I feel the number of Total Connections is high. Please see Live Stats below The following is how I use Memcached in my website <?php class dataCache { function setMemData($key, $var, $flag = false, $expire = 36000)

Strange TTFB (time to first byte) issue on Heroku

别等时光非礼了梦想. 提交于 2019-12-31 18:01:36
问题 We're in the process of improving performance of the our rails app hosted at Heroku (rails 3.2.8 and ruby 1.9.3). During this we've come across one alarming problem for which the source seems to be extremely difficult to track. Let me quickly explain how we experience the problem and how we've tried to isolate it. -- Since around June we've experienced weird lag behavior in Time to First Byte all over the site. The problems is obvious from using the site (sometimes the application doesn't

Entity Framework and inconsistent performance with processing the results of a query

混江龙づ霸主 提交于 2019-12-25 04:29:09
问题 Just setup New Relic on our site and we noticed some odd spikes in one of our webapi calls. At this point I have the problem boiled down to a single EF query that I moved out to its own method so I could use New Relic to instrument it.. The only thing the method does is //I changed this from ToListAsync to ToList to see if it would help var result = Context.Data.Where(x=> x.id = id).ToList(); return result; That's it.. Using New Relic and also logging out all the SQL queries I'm fairly

Custom instrumentation for generic classes in .Net using NewRelic

大城市里の小女人 提交于 2019-12-24 17:00:14
问题 Is there any way to instrument generic classes in .Net with new relic custom instrumenation? I added the instrumentation config like I do for non generic classes but with no luck. 回答1: You will need to use an IL signature. The best way to determine the signature is to turn up New Relic logging to 'all' in newrelic.config, run your app and then search the corresponding profiler log for the method name (make sure to set the logging back to info when finished). Using the signature you can the

New Relic requires root access on Openshift machine

江枫思渺然 提交于 2019-12-23 20:21:29
问题 I have an Application on Openshift and I just added New Relic add-on New Relic asks for setting up Server and configuration is listed as However, I could not get root access , I tried \> sudo rpm -Uvh http://download.newrelic.com/pub/newrelic/el5/i386/newrelic-repo-5-3.noarch.rpm bash: /usr/bin/sudo: Permission denied > su - root bash: /bin/su: Permission denied > sudo su bash: /usr/bin/sudo: Permission denied How do I setup New Relic on my Openshift box? Thanks 回答1: You're not allowed root