Throttle IO for testing slow downloads
To test a slow download rate for your application, you can use: wget –limit-rate 64k https://test/somePath
Computer and Software Engineering
To test a slow download rate for your application, you can use: wget –limit-rate 64k https://test/somePath
To Max out memory use: #!/usr/bin/python # To eat 40GB of RAM and hold it for 5 seconds type: #./memconsume.py 5 40 import time import sys seconds = int(sys.argv[1]) gb … Continue Reading Saturate (max out) Memory Utilization
To max out a 4 CPU machine run: #!/bin/bash function clean_up { kill $pids exit } trap clean_up SIGHUP SIGINT SIGTERM pids=”” for i in {1..4}; do while : ; … Continue Reading Saturate (max out) CPU Utilization
Compile (cl.exe) with /Zi /Od /Fd Link (link.exe) with /DEBUG /DEBUGTYPE:PDATA The produced executables will contain the full path in the Dynamically Linked Libraries (DLLs) and Executables. To debug in … Continue Reading Debugging in Visual Studio 2017 with a Command Line Compiled (cl.exe) and Linked (link.exe) Debug Executable Example
I was randomly getting errors (1 run in 50 would reproduce) like: $ ./myprogram *** glibc detected *** double free or corruption (out): 0x093014a4 *** Linux has a randomization of … Continue Reading Catching a double free or corruption error with memcheck (a Valgrind tool)
An example… If you want to know how to launch GDB, then an example program with GDB commands are provided at the bottom of this page, click here to go … Continue Reading Debugging C++ with GDB
If you see something like this: # # A fatal error has been detected by the Java Runtime Environment: # # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x0000000000000000, pid=10700, tid=6032 # # JRE … Continue Reading How do I Enable Minidumps on Windows?
This post is about using GDB to debug a DLL built with debug symbols which was called from a Java application being debugged by JetBrains IntelliJ IDEA. First things first: I am … Continue Reading Debugging DLL using GDB called via JNI (Java Native Interface) being debugged by JetBrains IntelliJ IDEA