How to use mtrace to detect memory leaks in executable in Linux

We will create a simple program as below, Note here: if we want to use mtrace to detect the memory leaks, our program should include header “mcheck.h” as done in above program. Then at the start of the program i.e. from main function call the “mtrace” function. [ shown in bold above ] Once a … Read more

Real-time performance monitoring tool for Linux

Recently we encountered with one of the beautiful tool we could get for monitoring Linux’s real time parameters such as CPU usage, RAM usage etc. This tool monitors following parameters, CPU usage, interrupts, softirqs and frequency (total and per core)RAM, swap and kernel memory usage (including KSM and kernel memory deduper)Disks (per disk: I/O, operations, … Read more

Using hcitool to get bluetooth device information

Below commands are shown for communication between Linux Laptop and Samsung Mobile to get Mobile bluetooth device information using hcitool. For this, first make sure laptop bluetooth is turned ON and then switch ON the Bluetooth of Mobile and Make it discoverable/visible to all nearby bluetooth devices. Lets try to understand what is hcitool, $ … Read more

Monitor Memory, CPU usage, processes i.e. system resources on Linux

System administrators need to monitor their server to ensure proper functioning. The practice enables administrators to detect possible issues in advance and recover the system, before it causes any trouble. There are plenty of commands on Linux to monitor different system resources like cpu usage, memory usage, network, disk usage and so on. Popular ones … Read more

Identify memory usage in Linux, Android using “smem” memory reporting tool

smem is a tool that can give numerous reports on memory usage on Linux systems. Unlike existing tools, smem can report proportional set size (PSS), which is a more meaningful representation of the amount of memory used by libraries and applications in a virtual memory system. Because large portions of physical memory are typically shared among multiple applications, … Read more

How to cross compile Busybox

BusyBox combines tiny versions of many common UNIX utilities / commands into a single small executable. It provides minimalist replacements for most of the utilities you usually find in GNU coreutils, util-linux, etc. The utilities in BusyBox generally have fewer options than their full-featured GNU cousins. Following steps helps to cross compile Busybox to a … Read more

Online tools for Software Developers from ExtendsClass

The ExtendsClass website provides a wealth of free online tools that make work-life easier for developers. No need to install plugin in your browser! Online tools include several fiddles, API clients, code checkers, formatters, validators and more. Within this post we will list some of the more helpful of its utilities. Playgrounds ExtendsClass provides many … Read more