How to give Jenkins more heap space when it´s started as a service under Windows?

If you used Aptitude (apt-get) to install Jenkins on Ubuntu 12.04, uncomment the JAVA_ARGS line in the top few lines of /etc/default/jenkins: # arguments to pass to java #JAVA_ARGS=”-Xmx256m” # <–default value JAVA_ARGS=”-Xmx2048m” #JAVA_ARGS=”-Djava.net.preferIPv4Stack=true” # make jenkins listen on IPv4 address

Difference between sampling and profiling in jVisualVM

Sampling means taking lots of thread dumps and analyzing stack traces. This is usually faster, does not require runtime changes in your bytecode (which may break it), but is also less accurate. Profiling means instrumenting your classes and methods, so they “report” whenever they are run. This is more accurate, as it counts every invocation … Read more

Using HeapDumpOnOutOfMemoryError parameter for heap dump for JBoss

Here’s what Oracle’s documentation has to say: By default the heap dump is created in a file called java_pid.hprof in the working directory of the VM, as in the example above. You can specify an alternative file name or directory with the -XX:HeapDumpPath= option. For example -XX:HeapDumpPath=/disk2/dumps will cause the heap dump to be generated … Read more

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