What is the difference between “container_memory_working_set_bytes” and “container_memory_rss” metric on the container

You are right. I will try to address your questions in more detail. What is the difference between two metrics? container_memory_rss equals to the value of total_rss from /sys/fs/cgroups/memory/memory.status file: // The amount of anonymous and swap cache memory (includes transparent // hugepages). // Units: Bytes. RSS uint64 `json:”rss”` The total amount of anonymous and … Read more

How can I monitor a Windows directory for changes?

Use a FileSystemWatcher like below to create a WatcherCreated Event(). I used this to create a Windows Service that watches a Network folder and then emails a specified group on arrival of new files. // Declare a new FILESYSTEMWATCHER protected FileSystemWatcher watcher; string pathToFolder = @”YourDesired Path Here”; // Initialize the New FILESYSTEMWATCHER watcher = … Read more

PowerShell script to check the status of a URL

I recently set up a script that does this. As David Brabant pointed out, you can use the System.Net.WebRequest class to do an HTTP request. To check whether it is operational, you should use the following example code: # First we create the request. $HTTP_Request = [System.Net.WebRequest]::Create(‘http://google.com’) # We then get a response from the … Read more

Can jconsole data be retrieved from the command line?

jconsole just provides a wrapper around the JMX MBeans that are in the platform MBeanServer. You can write a program to connect to your VM using the Attach API which would then query the MBeans. Or you can expose the platform MBeanServer over RMI and query the MBeans that way. See the java.lang.management package for … Read more

other open source alternatives to codahale’s “metrics”? [closed]

Some suggestions: Perf4J: Perf4J is a set of utilities for calculating and displaying performance statistics for Java code. ERMA: ERMA (Extremely Reusable Monitoring API) is an instrumentation API that has been designed to be applicable for all monitoring needs. javasimon: Java Simon is a simple monitoring API that allows you to follow and better understand … Read more

Best way to aggregate multiple log files from several servers [closed]

Probably the lightest-weight solution for real-time log watching is to use Dancer’s shell in concurrent mode with tail -f: dsh -Mac — tail -f /var/log/apache/*.log The -a is for all machine names that you’ve defined in ~/.dsh/machines.list The -c is for concurrent running of tail The -M prepends the hostname to every line of output.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)