<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://bisq.wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Ghubstan</id>
	<title>Bisq Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://bisq.wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Ghubstan"/>
	<link rel="alternate" type="text/html" href="https://bisq.wiki/Special:Contributions/Ghubstan"/>
	<updated>2026-05-08T19:41:28Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.34.0</generator>
	<entry>
		<id>https://bisq.wiki/index.php?title=Reducing_memory_usage&amp;diff=867</id>
		<title>Reducing memory usage</title>
		<link rel="alternate" type="text/html" href="https://bisq.wiki/index.php?title=Reducing_memory_usage&amp;diff=867"/>
		<updated>2020-04-15T15:26:24Z</updated>

		<summary type="html">&lt;p&gt;Ghubstan: /* Default MaxRAM Setting */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Default MaxRAM Setting ==&lt;br /&gt;
&lt;br /&gt;
One of the settings java virtual machines (JVMs) use to calibrate how much physical memory to reserve at startup is '''MaxRAM''', and there is a good chance your JVM's default MaxRAM configuration is too large. &amp;amp;nbsp;&amp;amp;nbsp; To check the default MaxRAM setting, run this java &amp;lt;code&amp;gt;version&amp;lt;/code&amp;gt; command:  &lt;br /&gt;
&lt;br /&gt;
    java -XX:+UnlockDiagnosticVMOptions -XX:+PrintFlagsFinal -version | grep MaxRAM&lt;br /&gt;
&lt;br /&gt;
Look for the MaxRAM value (bytes) in the output;  this machine says&lt;br /&gt;
&lt;br /&gt;
    367: uint64_t MaxRAM = 137438953472 &lt;br /&gt;
&lt;br /&gt;
This means the OpenJDK 11 JVM's MaxRAM setting is 128 GB, on a machine with only 16 GB RAM.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Experiments have shown running Bisq with a 4g (GB) MaxRAM setting reduces resident memory consumption by more than 50% (when starting a clean Bisq installation with an empty data directory).&lt;br /&gt;
&amp;amp;nbsp;&amp;amp;nbsp; Setting MaxRAM to 2g reduces resident memory usage even more, but setting it any lower (1536m) will result in an OutOfMemoryError and crash the app.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
As of version 1.3.2, Bisq is started with a MaxRAM setting of 4g (GB). &amp;amp;nbsp;&amp;amp;nbsp; If you are using Bisq v1.3.1 or older, consider upgrading to the [https://bisq.network/downloads latest version] to benefit from this change.&lt;/div&gt;</summary>
		<author><name>Ghubstan</name></author>
		
	</entry>
	<entry>
		<id>https://bisq.wiki/index.php?title=Reducing_memory_usage&amp;diff=856</id>
		<title>Reducing memory usage</title>
		<link rel="alternate" type="text/html" href="https://bisq.wiki/index.php?title=Reducing_memory_usage&amp;diff=856"/>
		<updated>2020-04-12T13:00:33Z</updated>

		<summary type="html">&lt;p&gt;Ghubstan: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Default MaxRAM Setting ==&lt;br /&gt;
&lt;br /&gt;
One of the settings java virtual machines (JVMs) use to calibrate how much physical memory to reserve at startup is '''MaxRAM''', and there is a good chance your JVM's default MaxRAM configuration is too large. &amp;amp;nbsp;&amp;amp;nbsp; To check the default MaxRAM setting, run this java &amp;lt;code&amp;gt;version&amp;lt;/code&amp;gt; command:  &lt;br /&gt;
&lt;br /&gt;
    java -XX:+UnlockDiagnosticVMOptions -XX:+PrintFlagsFinal -version | grep MaxRAM&lt;br /&gt;
&lt;br /&gt;
Look for the MaxRAM value (bytes) in the output;  this machine says&lt;br /&gt;
&lt;br /&gt;
    367: uint64_t MaxRAM = 137438953472 &lt;br /&gt;
&lt;br /&gt;
This means the OpenJDK 11 JVM's MaxRAM setting is 128 GB, on a machine with only 16 GB RAM.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Experiments have shown running Bisq with a 4g (GB) MaxRAM setting reduces resident memory consumption by more than 50% (when starting a clean Bisq installation with an empty data directory).&lt;br /&gt;
&amp;amp;nbsp;&amp;amp;nbsp; Setting MaxRAM to 2g reduces resident memory usage even more, but setting it any lower (1536m) will result in an OutOfMemoryError and crash the app.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
As of version 1.3.[TODO], Bisq is started with a MaxRAM setting of 4g (GB). &amp;amp;nbsp;&amp;amp;nbsp; If you are using Bisq v1.3.[TODO] or older, consider upgrading to the [https://bisq.network/downloads latest version] to benefit from this change.&lt;/div&gt;</summary>
		<author><name>Ghubstan</name></author>
		
	</entry>
	<entry>
		<id>https://bisq.wiki/index.php?title=Reducing_memory_usage&amp;diff=833</id>
		<title>Reducing memory usage</title>
		<link rel="alternate" type="text/html" href="https://bisq.wiki/index.php?title=Reducing_memory_usage&amp;diff=833"/>
		<updated>2020-04-08T13:23:33Z</updated>

		<summary type="html">&lt;p&gt;Ghubstan: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Default MaxRAM Setting ==&lt;br /&gt;
&lt;br /&gt;
One of the settings java virtual machines use to calibrate how much physical memory to reserve at startup is '''MaxRAM''', and there is a good chance your JVM's default MaxRAM configuration is too large. &amp;amp;nbsp;&amp;amp;nbsp; To check the default MaxRAM setting, run this java 'version' command:  &lt;br /&gt;
&lt;br /&gt;
    java -XX:+UnlockDiagnosticVMOptions -XX:+PrintFlagsFinal -version | grep MaxRAM&lt;br /&gt;
&lt;br /&gt;
Look for the MaxRAM value (bytes) in the output;  this machine says&lt;br /&gt;
&lt;br /&gt;
    367: uint64_t MaxRAM = 137438953472 &lt;br /&gt;
&lt;br /&gt;
meaning my OpenJDK 11 JVM's MaxRAM setting is 128 GB, on a machine with only 16 GB RAM.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Experiments have shown running Bisq with a 4g (GB) MaxRAM setting reduces resident memory consumption by more than 50% (when starting a clean Bisq installation with an empty data directory).&lt;br /&gt;
&amp;amp;nbsp;&amp;amp;nbsp; Setting MaxRAM to 2g reduces resident memory usage even more, but setting it any lower (1536m) will result in an OutOfMemoryError and crash the app.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
As of version 1.2.7, Bisq is started with a MaxRAM setting of 4g (GB). &amp;amp;nbsp;&amp;amp;nbsp; If you are using Bisq v1.2 [.TODO] or older, consider upgrading to the [https://bisq.network/downloads latest version] to benefit from this change.&lt;/div&gt;</summary>
		<author><name>Ghubstan</name></author>
		
	</entry>
	<entry>
		<id>https://bisq.wiki/index.php?title=Linux_memory_arenas&amp;diff=782</id>
		<title>Linux memory arenas</title>
		<link rel="alternate" type="text/html" href="https://bisq.wiki/index.php?title=Linux_memory_arenas&amp;diff=782"/>
		<updated>2020-04-05T20:28:21Z</updated>

		<summary type="html">&lt;p&gt;Ghubstan: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Java Threads and Linux Memory Arenas ==&lt;br /&gt;
&lt;br /&gt;
With the intention of improving efficiency of memory access in multi-threaded applications, [https://www.gnu.org/software/libc/manual/html_mono/libc.html glibc] may create more memory regions (known as [https://sourceware.org/glibc/wiki/MallocInternals#Arenas_and_Heaps arenas]) than necessary. &amp;amp;nbsp;&amp;amp;nbsp; In some cases, multi-threaded java applications allocating few and small objects can trigger creation of one arena for each of those threads, resulting in large growth of the java process' resident memory, no matter how well on-heap memory is managed by the application. &lt;br /&gt;
&lt;br /&gt;
One way to limit arena creation in Bisq is to define the environment variable MALLOC_ARENA_MAX=4.  &lt;br /&gt;
&lt;br /&gt;
    export MALLOC_ARENA_MAX=4&lt;br /&gt;
&lt;br /&gt;
If not set (default=0), a combination of applications may create as many arenas as the number of cpu cores * 8.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This setting reduced resident memory use by ~300 MB, and reduced virtual memory use by ~3.7 GB on an 8 core, 16 GB RAM machine running Ubuntu 18.   The trade off for reducing resident memory use in this manner is the added cost of the contention between threads for memory access among fewer arenas, but this was not perceptible during testing and profiling. &amp;amp;nbsp;&amp;amp;nbsp;(The major bottlenecks in Bisq performance are related to Tor/P2P network I/O.)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
There are many sources of information on this and other tunable memory allocation parameters, starting with the Linux [http://man7.org/linux/man-pages/man3/mallopt.3.html mallopt] man page; additional research and troubleshooting tips are welcome.&lt;/div&gt;</summary>
		<author><name>Ghubstan</name></author>
		
	</entry>
	<entry>
		<id>https://bisq.wiki/index.php?title=Reducing_memory_usage&amp;diff=781</id>
		<title>Reducing memory usage</title>
		<link rel="alternate" type="text/html" href="https://bisq.wiki/index.php?title=Reducing_memory_usage&amp;diff=781"/>
		<updated>2020-04-05T19:45:11Z</updated>

		<summary type="html">&lt;p&gt;Ghubstan: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Default MaxRAM Setting ==&lt;br /&gt;
&lt;br /&gt;
One of the settings java virtual machines use to calibrate how much physical memory to reserve at startup is '''MaxRAM''', and there is a good chance your JVM's default MaxRAM configuration is too large. &amp;amp;nbsp;&amp;amp;nbsp; To check the default MaxRAM setting, run this java 'version' command:  &lt;br /&gt;
&lt;br /&gt;
    java -XX:+UnlockDiagnosticVMOptions -XX:+PrintFlagsFinal -version | grep MaxRAM&lt;br /&gt;
&lt;br /&gt;
Look for the MaxRAM value (bytes) in the output;  this machine says&lt;br /&gt;
&lt;br /&gt;
    367: uint64_t MaxRAM = 137438953472 &lt;br /&gt;
&lt;br /&gt;
meaning my OpenJDK 11 JVM's MaxRAM setting is 128 GB, on a machine with only 16 GB RAM.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Experiments have shown running Bisq with a 4g (GB) MaxRAM setting reduces resident memory consumption by more than 50% (when starting a clean Bisq installation with an empty data directory).&lt;br /&gt;
&amp;amp;nbsp;&amp;amp;nbsp; Setting MaxRAM to 2g reduces resident memory usage even more, but setting it any lower (1536m) will result in an OutOfMemoryError and crash the app.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
As of version 1.2.7, Bisq is started with a MaxRAM setting of 4g (GB). &amp;amp;nbsp;&amp;amp;nbsp; If you are using Bisq v1.2.6 or older, consider upgrading to the [https://bisq.network/downloads latest version] to benefit from this change.&lt;/div&gt;</summary>
		<author><name>Ghubstan</name></author>
		
	</entry>
	<entry>
		<id>https://bisq.wiki/index.php?title=Reducing_memory_usage&amp;diff=780</id>
		<title>Reducing memory usage</title>
		<link rel="alternate" type="text/html" href="https://bisq.wiki/index.php?title=Reducing_memory_usage&amp;diff=780"/>
		<updated>2020-04-05T19:44:30Z</updated>

		<summary type="html">&lt;p&gt;Ghubstan: /* Default MaxRAM Setting */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Default MaxRAM Setting ==&lt;br /&gt;
&lt;br /&gt;
One of the settings java virtual machines use to calibrate how much physical memory to reserve at startup is '''MaxRAM''', and there is a good chance your JVM's default MaxRAM configuration is too large. &amp;amp;nbsp;&amp;amp;nbsp; To check the default MaxRAM setting, run this java 'version' command:  &lt;br /&gt;
&lt;br /&gt;
    java -XX:+UnlockDiagnosticVMOptions -XX:+PrintFlagsFinal -version | grep MaxRAM&lt;br /&gt;
&lt;br /&gt;
Look for the default MaxRAM setting in the output;  this machine says&lt;br /&gt;
&lt;br /&gt;
    367: uint64_t MaxRAM = 137438953472 &lt;br /&gt;
&lt;br /&gt;
meaning my OpenJDK 11 JVM's MaxRAM setting is 128 GB, on a machine with only 16 GB RAM.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Experiments have shown running Bisq with a 4g (GB) MaxRAM setting reduces resident memory consumption by more than 50% (when starting a clean Bisq installation with an empty data directory).&lt;br /&gt;
&amp;amp;nbsp;&amp;amp;nbsp; Setting MaxRAM to 2g reduces resident memory usage even more, but setting it any lower (1536m) will result in an OutOfMemoryError and crash the app.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
As of version 1.2.7, Bisq is started with a MaxRAM setting of 4g (GB). &amp;amp;nbsp;&amp;amp;nbsp; If you are using Bisq v1.2.6 or older, consider upgrading to the [https://bisq.network/downloads latest version] to benefit from this change.&lt;/div&gt;</summary>
		<author><name>Ghubstan</name></author>
		
	</entry>
	<entry>
		<id>https://bisq.wiki/index.php?title=Reducing_memory_usage&amp;diff=779</id>
		<title>Reducing memory usage</title>
		<link rel="alternate" type="text/html" href="https://bisq.wiki/index.php?title=Reducing_memory_usage&amp;diff=779"/>
		<updated>2020-04-05T19:43:46Z</updated>

		<summary type="html">&lt;p&gt;Ghubstan: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Default MaxRAM Setting ==&lt;br /&gt;
&lt;br /&gt;
One of the settings java virtual machines use to calibrate how much physical memory to reserve at startup is '''MaxRAM''', and there is a good chance your JVM's MaxRAM setting is too large. &amp;amp;nbsp;&amp;amp;nbsp; To check the default MaxRAM setting, run this java 'version' command:  &lt;br /&gt;
&lt;br /&gt;
    java -XX:+UnlockDiagnosticVMOptions -XX:+PrintFlagsFinal -version | grep MaxRAM&lt;br /&gt;
&lt;br /&gt;
Look for the default MaxRAM setting in the output;  this machine says&lt;br /&gt;
&lt;br /&gt;
    367: uint64_t MaxRAM = 137438953472 &lt;br /&gt;
&lt;br /&gt;
meaning my OpenJDK 11 JVM's MaxRAM setting is 128 GB, on a machine with only 16 GB RAM.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Experiments have shown running Bisq with a 4g (GB) MaxRAM setting reduces resident memory consumption by more than 50% (when starting a clean Bisq installation with an empty data directory).&lt;br /&gt;
&amp;amp;nbsp;&amp;amp;nbsp; Setting MaxRAM to 2g reduces resident memory usage even more, but setting it any lower (1536m) will result in an OutOfMemoryError and crash the app.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
As of version 1.2.7, Bisq is started with a MaxRAM setting of 4g (GB). &amp;amp;nbsp;&amp;amp;nbsp; If you are using Bisq v1.2.6 or older, consider upgrading to the [https://bisq.network/downloads latest version] to benefit from this change.&lt;/div&gt;</summary>
		<author><name>Ghubstan</name></author>
		
	</entry>
	<entry>
		<id>https://bisq.wiki/index.php?title=Linux_memory_arenas&amp;diff=778</id>
		<title>Linux memory arenas</title>
		<link rel="alternate" type="text/html" href="https://bisq.wiki/index.php?title=Linux_memory_arenas&amp;diff=778"/>
		<updated>2020-04-05T19:41:46Z</updated>

		<summary type="html">&lt;p&gt;Ghubstan: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Java Threads and Linux Memory Arenas ==&lt;br /&gt;
&lt;br /&gt;
With the intention of improving efficiency of memory access in multi-threaded applications, [https://www.gnu.org/software/libc/manual/html_mono/libc.html glibc] may create more memory regions (known as [https://sourceware.org/glibc/wiki/MallocInternals#Arenas_and_Heaps arenas]) than necessary. &amp;amp;nbsp;&amp;amp;nbsp; In some cases, multi-threaded java applications allocating few and small objects can trigger creation of one arena for each of those threads, resulting in large growth of the java process' resident memory, no matter how well on-heap memory is managed by the application. &lt;br /&gt;
&lt;br /&gt;
One way to limit arena creation in Bisq is to define the environment variable MALLOC_ARENA_MAX=4.  &lt;br /&gt;
&lt;br /&gt;
    export MALLOC_ARENA_MAX=4&lt;br /&gt;
&lt;br /&gt;
If not set (default=0), a combination of applications may create as many arenas as the number of cpu cores * 8.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This setting reduced resident memory use by ~300 MB, and reduced virtual memory use by ~3.7 GB on an 8 core, 16 GB RAM machine running Ubuntu 18.   The trade off for reducing resident memory use in this manner is the added cost of the contention among threads for memory access among fewer arenas, but this was not perceptible during testing and profiling. &amp;amp;nbsp;&amp;amp;nbsp;(The major bottlenecks in Bisq performance are related to Tor/P2P network I/O.)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
There are many sources of information on this and other tunable memory allocation parameters, starting with the Linux [http://man7.org/linux/man-pages/man3/mallopt.3.html mallopt] man page; additional research and troubleshooting tips are welcome.&lt;/div&gt;</summary>
		<author><name>Ghubstan</name></author>
		
	</entry>
	<entry>
		<id>https://bisq.wiki/index.php?title=Troubleshooting&amp;diff=776</id>
		<title>Troubleshooting</title>
		<link rel="alternate" type="text/html" href="https://bisq.wiki/index.php?title=Troubleshooting&amp;diff=776"/>
		<updated>2020-04-05T15:35:13Z</updated>

		<summary type="html">&lt;p&gt;Ghubstan: /* Bisq is using too much RAM */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This article is a stub. The specific sections below are just examples for demonstration purposes.&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
== Bisq won't start ==&lt;br /&gt;
&lt;br /&gt;
== My Antivirus software flags Bisq as malware ==&lt;br /&gt;
&lt;br /&gt;
== Bisq cannot connect via Tor ==&lt;br /&gt;
&lt;br /&gt;
== My wallet has an incorrect balance ==&lt;br /&gt;
&lt;br /&gt;
* Resyncing your simplified payment verification (SPV) file may resolve this. See [[Delete and resync SPV file]]&lt;br /&gt;
&lt;br /&gt;
== Bisq is using too much RAM ==&lt;br /&gt;
&lt;br /&gt;
* Limiting the maximum amount of RAM the JVM is allowed to use may resolve this. See [[Reduce JVM MAXRam]]&lt;br /&gt;
&lt;br /&gt;
* On Linux, restricting memory arena allocation can reduce Bisq's off-heap memory consumption. See [[Linux_Memory_Arenas]]&lt;br /&gt;
&lt;br /&gt;
== My problem isn't addressed here ==&lt;br /&gt;
&lt;br /&gt;
See [[user support]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Stubs]]&lt;br /&gt;
[[Category:Client]]&lt;/div&gt;</summary>
		<author><name>Ghubstan</name></author>
		
	</entry>
	<entry>
		<id>https://bisq.wiki/index.php?title=Reducing_memory_usage&amp;diff=775</id>
		<title>Reducing memory usage</title>
		<link rel="alternate" type="text/html" href="https://bisq.wiki/index.php?title=Reducing_memory_usage&amp;diff=775"/>
		<updated>2020-04-05T15:26:27Z</updated>

		<summary type="html">&lt;p&gt;Ghubstan: /* Default MaxRAM Setting */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Default MaxRAM Setting ==&lt;br /&gt;
&lt;br /&gt;
One of the settings java virtual machines use to calibrate how much physical memory to reserve at startup is '''MaxRAM''', and there is a good chance your JVM thinks it has more RAM to use than is installed on your machine. &amp;amp;nbsp;&amp;amp;nbsp; To check the default MaxRAM setting, run this java 'version' command:  &lt;br /&gt;
&lt;br /&gt;
    java -XX:+UnlockDiagnosticVMOptions -XX:+PrintFlagsFinal -version | grep MaxRAM&lt;br /&gt;
&lt;br /&gt;
Look for the default MaxRAM setting in the output;  this machine says&lt;br /&gt;
&lt;br /&gt;
    367: uint64_t MaxRAM = 137438953472 &lt;br /&gt;
&lt;br /&gt;
meaning my OpenJDK 11 JVM's MaxRAM setting is 128 GB, on a machine with only 16 GB RAM.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Experiments have shown running Bisq with a 4g (GB) MaxRAM setting reduces resident memory consumption by more than 50% (when starting a clean Bisq installation with an empty data directory).&lt;br /&gt;
&amp;amp;nbsp;&amp;amp;nbsp; Setting MaxRAM to 2g reduces resident memory usage even more, but setting it any lower (1536m) will result in an OutOfMemoryError and crash the app.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
As of version 1.2.7, Bisq is started with a MaxRAM setting of 4g (GB). &amp;amp;nbsp;&amp;amp;nbsp; If you are using Bisq v1.2.6 or older, consider upgrading to the [https://bisq.network/downloads latest version] to benefit from this change.&lt;/div&gt;</summary>
		<author><name>Ghubstan</name></author>
		
	</entry>
	<entry>
		<id>https://bisq.wiki/index.php?title=Reducing_memory_usage&amp;diff=774</id>
		<title>Reducing memory usage</title>
		<link rel="alternate" type="text/html" href="https://bisq.wiki/index.php?title=Reducing_memory_usage&amp;diff=774"/>
		<updated>2020-04-05T15:21:48Z</updated>

		<summary type="html">&lt;p&gt;Ghubstan: /* Default MaxRAM Setting */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Default MaxRAM Setting ==&lt;br /&gt;
&lt;br /&gt;
One of the settings java virtual machines use to calibrate how much physical memory to reserve at startup is '''MaxRAM''', and there is a good chance your JVM thinks it has more RAM to use than is installed on your machine.  To check the default MaxRAM setting, run this java 'version' command:  &lt;br /&gt;
&lt;br /&gt;
    java -XX:+UnlockDiagnosticVMOptions -XX:+PrintFlagsFinal -version | grep MaxRAM&lt;br /&gt;
&lt;br /&gt;
Look for the default MaxRAM setting in the output;  this machine says&lt;br /&gt;
&lt;br /&gt;
    367: uint64_t MaxRAM                                   = 137438953472                           {pd product} {default}&lt;br /&gt;
&lt;br /&gt;
meaning my OpenJDK 11 JVM's MaxRAM setting is 128 GB, on a machine with only 16 GB RAM.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Experiments have shown running Bisq with a 4g (GB) MaxRAM setting reduces resident memory consumption by more than 50% (when starting a clean Bisq installation with an empty data directory).&lt;br /&gt;
&lt;br /&gt;
Setting MaxRAM to 2g reduces resident memory usage even more, but setting it any lower (1536m) will result in an OutOfMemoryError and crash the app.&lt;br /&gt;
&lt;br /&gt;
As of version 1.2.7, Bisq starts up with a MaxRAM setting of 4g (GB).  If you are using Bisq v1.2.6 or older, consider upgrading to the [https://bisq.network/downloads latest version] to reduce Bisq's RAM usage.&lt;/div&gt;</summary>
		<author><name>Ghubstan</name></author>
		
	</entry>
	<entry>
		<id>https://bisq.wiki/index.php?title=Linux_memory_arenas&amp;diff=773</id>
		<title>Linux memory arenas</title>
		<link rel="alternate" type="text/html" href="https://bisq.wiki/index.php?title=Linux_memory_arenas&amp;diff=773"/>
		<updated>2020-04-05T15:19:08Z</updated>

		<summary type="html">&lt;p&gt;Ghubstan: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Java Threads and Linux Memory Arenas ==&lt;br /&gt;
&lt;br /&gt;
With the intention of improving efficiency of memory access in multi-threaded applications, [https://www.gnu.org/software/libc/manual/html_mono/libc.html glibc] may create more memory regions (known as [https://sourceware.org/glibc/wiki/MallocInternals#Arenas_and_Heaps arenas]) than necessary. &amp;amp;nbsp;&amp;amp;nbsp; In some cases, multi-threaded java applications allocating few and small objects in some threads can trigger creation of one arena for each of those threads, resulting in large growth of the java process' resident memory, no matter how well on-heap memory is managed by the application. &lt;br /&gt;
&lt;br /&gt;
One way to limit arena creation in Bisq is to define the environment variable MALLOC_ARENA_MAX=4.  &lt;br /&gt;
&lt;br /&gt;
    export MALLOC_ARENA_MAX=4&lt;br /&gt;
&lt;br /&gt;
If not set (default=0), a combination of applications may create as many arenas as the number of cpu cores * 8.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This setting reduced resident memory use by ~300 MB, and reduced virtual memory use by ~3.7 GB on an 8 core, 16 GB RAM machine running Ubuntu 18.   The trade off for reducing resident memory use in this manner is the added cost of the contention among threads for memory access among fewer arenas, but this was not perceptible during testing and profiling. &amp;amp;nbsp;&amp;amp;nbsp;(The major bottlenecks in Bisq performance are related to Tor/P2P network I/O.)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
There are many sources of information on this and other tunable memory allocation parameters, starting with the Linux [http://man7.org/linux/man-pages/man3/mallopt.3.html mallopt] man page; additional research and troubleshooting tips are welcome.&lt;/div&gt;</summary>
		<author><name>Ghubstan</name></author>
		
	</entry>
	<entry>
		<id>https://bisq.wiki/index.php?title=Reducing_memory_usage&amp;diff=770</id>
		<title>Reducing memory usage</title>
		<link rel="alternate" type="text/html" href="https://bisq.wiki/index.php?title=Reducing_memory_usage&amp;diff=770"/>
		<updated>2020-04-05T12:52:48Z</updated>

		<summary type="html">&lt;p&gt;Ghubstan: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Default MaxRAM Setting ==&lt;br /&gt;
&lt;br /&gt;
One of the settings java virtual machines use to calibrate how much physical memory to reserve at startup is '''MaxRAM''', and there is a good chance your JVM thinks it has more RAM to use than is installed on your machine.  To check the default MaxRAM setting, run this java 'version' command:  &lt;br /&gt;
&lt;br /&gt;
    java -XX:+UnlockDiagnosticVMOptions -XX:+PrintFlagsFinal -version | grep MaxRAM&lt;br /&gt;
&lt;br /&gt;
Look for the default MaxRAM setting in the output;  this machine says&lt;br /&gt;
&lt;br /&gt;
    367: uint64_t MaxRAM                                   = 137438953472                           {pd product} {default}&lt;br /&gt;
&lt;br /&gt;
meaning my OpenJDK 11 JVM's MaxRAM setting is 128 GB, on a machine with only 16 GB RAM.&lt;br /&gt;
&lt;br /&gt;
Experiments have shown starting Bisq with a 4g (GB) MaxRAM setting reduces resident memory consumption by more than 50% when starting a clean Bisq installation -- with an empty data directory.&lt;br /&gt;
&lt;br /&gt;
Setting MaxRAM to 2g reduces resident memory usage even more, but setting it any lower (1536m) will result in an OutOfMemoryError and crash the app.&lt;br /&gt;
&lt;br /&gt;
As of version 1.2.7, Bisq starts up with a MaxRAM setting of 4g (GB).  If you are using Bisq v1.2.6 or older, consider upgrading to the [https://bisq.network/downloads latest version] to reduce Bisq's RAM usage.&lt;/div&gt;</summary>
		<author><name>Ghubstan</name></author>
		
	</entry>
	<entry>
		<id>https://bisq.wiki/index.php?title=Troubleshooting&amp;diff=769</id>
		<title>Troubleshooting</title>
		<link rel="alternate" type="text/html" href="https://bisq.wiki/index.php?title=Troubleshooting&amp;diff=769"/>
		<updated>2020-04-04T17:39:55Z</updated>

		<summary type="html">&lt;p&gt;Ghubstan: /* Bisq is using too much RAM */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This article is a stub. The specific sections below are just examples for demonstration purposes.&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
== Bisq won't start ==&lt;br /&gt;
&lt;br /&gt;
== My Antivirus software flags Bisq as malware ==&lt;br /&gt;
&lt;br /&gt;
== Bisq cannot connect via Tor ==&lt;br /&gt;
&lt;br /&gt;
== My wallet has an incorrect balance ==&lt;br /&gt;
&lt;br /&gt;
* Resyncing your simplified payment verification (SPV) file may resolve this. See [[Delete and resync SPV file]]&lt;br /&gt;
&lt;br /&gt;
== Bisq is using too much RAM ==&lt;br /&gt;
&lt;br /&gt;
* Limiting the maximum amount of RAM the JVM thinks your machine has may resolve this. See [[Reduce JVM MAXRam]]&lt;br /&gt;
&lt;br /&gt;
* On Linux, restricting memory arena allocation can reduce Bisq's off-heap memory consumption. See [[Linux_Memory_Arenas]]&lt;br /&gt;
&lt;br /&gt;
== My problem isn't addressed here ==&lt;br /&gt;
&lt;br /&gt;
See [[user support]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Stubs]]&lt;br /&gt;
[[Category:Client]]&lt;/div&gt;</summary>
		<author><name>Ghubstan</name></author>
		
	</entry>
	<entry>
		<id>https://bisq.wiki/index.php?title=Reducing_memory_usage&amp;diff=768</id>
		<title>Reducing memory usage</title>
		<link rel="alternate" type="text/html" href="https://bisq.wiki/index.php?title=Reducing_memory_usage&amp;diff=768"/>
		<updated>2020-04-04T17:15:55Z</updated>

		<summary type="html">&lt;p&gt;Ghubstan: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Default MaxRAM Setting ==&lt;br /&gt;
&lt;br /&gt;
One of the settings java virtual machines use to calibrate how much physical memory to reserve at startup is '''MaxRAM''', and there is a good chance your JVM thinks it has more RAM to use than is installed on your machine.  To check the default MaxRAM setting, run this java 'version' command:  &lt;br /&gt;
&lt;br /&gt;
    java -XX:+UnlockDiagnosticVMOptions -XX:+PrintFlagsFinal -version | grep MaxRAM&lt;br /&gt;
&lt;br /&gt;
Look for the default MaxRAM setting in the output;  this machine says&lt;br /&gt;
&lt;br /&gt;
    367: uint64_t MaxRAM                                   = 137438953472                           {pd product} {default}&lt;br /&gt;
&lt;br /&gt;
meaning my OpenJDK 11 JVM's MaxRAM setting is 128 GB, on a machine with only 16 GB RAM.&lt;br /&gt;
&lt;br /&gt;
Experiments have shown starting Bisq with a 4g (GB) MaxRAM setting reduces resident memory consumption by more than 50% when starting a clean Bisq installation -- with an empty data directory.&lt;br /&gt;
&lt;br /&gt;
Setting MaxRAM to 2g reduces resident memory usage even more, but setting it any lower (1536m) will result in an OutOfMemoryError and crash the app.&lt;br /&gt;
&lt;br /&gt;
As of version 1.2.7, Bisq starts up with a MaxRAM setting of 4g (GB).  If you are using Bisq v1.2.6 or older, consider upgrading to the latest version to reduce Bisq's RAM usage.&lt;/div&gt;</summary>
		<author><name>Ghubstan</name></author>
		
	</entry>
	<entry>
		<id>https://bisq.wiki/index.php?title=Troubleshooting&amp;diff=767</id>
		<title>Troubleshooting</title>
		<link rel="alternate" type="text/html" href="https://bisq.wiki/index.php?title=Troubleshooting&amp;diff=767"/>
		<updated>2020-04-04T17:06:01Z</updated>

		<summary type="html">&lt;p&gt;Ghubstan: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This article is a stub. The specific sections below are just examples for demonstration purposes.&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
== Bisq won't start ==&lt;br /&gt;
&lt;br /&gt;
== My Antivirus software flags Bisq as malware ==&lt;br /&gt;
&lt;br /&gt;
== Bisq cannot connect via Tor ==&lt;br /&gt;
&lt;br /&gt;
== My wallet has an incorrect balance ==&lt;br /&gt;
&lt;br /&gt;
* Resyncing your simplified payment verification (SPV) file may resolve this. See [[Delete and resync SPV file]]&lt;br /&gt;
&lt;br /&gt;
== Bisq is using too much RAM ==&lt;br /&gt;
&lt;br /&gt;
* Limiting the maximum amount of RAM the JVM thinks your machine has may resolve this. See [[Reduce JVM MAXRam]], and [[Linux_Memory_Arenas]]&lt;br /&gt;
&lt;br /&gt;
== My problem isn't addressed here ==&lt;br /&gt;
&lt;br /&gt;
See [[user support]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Stubs]]&lt;br /&gt;
[[Category:Client]]&lt;/div&gt;</summary>
		<author><name>Ghubstan</name></author>
		
	</entry>
	<entry>
		<id>https://bisq.wiki/index.php?title=Linux_memory_arenas&amp;diff=766</id>
		<title>Linux memory arenas</title>
		<link rel="alternate" type="text/html" href="https://bisq.wiki/index.php?title=Linux_memory_arenas&amp;diff=766"/>
		<updated>2020-04-04T17:05:18Z</updated>

		<summary type="html">&lt;p&gt;Ghubstan: Created page with &amp;quot;TODO&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;TODO&lt;/div&gt;</summary>
		<author><name>Ghubstan</name></author>
		
	</entry>
	<entry>
		<id>https://bisq.wiki/index.php?title=Reducing_memory_usage&amp;diff=765</id>
		<title>Reducing memory usage</title>
		<link rel="alternate" type="text/html" href="https://bisq.wiki/index.php?title=Reducing_memory_usage&amp;diff=765"/>
		<updated>2020-04-04T17:03:06Z</updated>

		<summary type="html">&lt;p&gt;Ghubstan: Created page with &amp;quot;== Default MaxRAM Setting ==  One of the settings java virtual machines use to calibrate how much physical memory to reserve at startup is called MaxRAM, and there is a good c...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Default MaxRAM Setting ==&lt;br /&gt;
&lt;br /&gt;
One of the settings java virtual machines use to calibrate how much physical memory to reserve at startup is called MaxRAM, and there is a good chance your JVM thinks it has more RAM to use than is installed on your machine.  To check the default MaxRAM setting, run this java 'version' command:  &lt;br /&gt;
&lt;br /&gt;
    java -XX:+UnlockDiagnosticVMOptions -XX:+PrintFlagsFinal -version | grep MaxRAM&lt;br /&gt;
&lt;br /&gt;
Look for the default MaxRAM setting in the output;  this machine says&lt;br /&gt;
&lt;br /&gt;
    367: uint64_t MaxRAM                                   = 137438953472                           {pd product} {default}&lt;br /&gt;
&lt;br /&gt;
meaning my OpenJDK 11 JVM's MaxRAM setting is 128 GB, on a machine with only 16 GB RAM.&lt;br /&gt;
&lt;br /&gt;
Experiments has shown that starting Bisq with a 4GB MaxRAM setting more than halves the resident memory consumption when starting a clean Bisq installation (with an empty data directory).  Setting MaxRAM = 2GB reduces resident memory usage even more, but setting it any lower (1.5GB) will result in an OutOfMemoryError and crash the app.&lt;br /&gt;
&lt;br /&gt;
As of version 1.2.7, Bisq starts up with a MaxRAM setting of 4GB.&lt;/div&gt;</summary>
		<author><name>Ghubstan</name></author>
		
	</entry>
	<entry>
		<id>https://bisq.wiki/index.php?title=Troubleshooting&amp;diff=764</id>
		<title>Troubleshooting</title>
		<link rel="alternate" type="text/html" href="https://bisq.wiki/index.php?title=Troubleshooting&amp;diff=764"/>
		<updated>2020-04-04T16:39:31Z</updated>

		<summary type="html">&lt;p&gt;Ghubstan: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This article is a stub. The specific sections below are just examples for demonstration purposes.&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
== Bisq won't start ==&lt;br /&gt;
&lt;br /&gt;
== My Antivirus software flags Bisq as malware ==&lt;br /&gt;
&lt;br /&gt;
== Bisq cannot connect via Tor ==&lt;br /&gt;
&lt;br /&gt;
== My wallet has an incorrect balance ==&lt;br /&gt;
&lt;br /&gt;
* Resyncing your simplified payment verification (SPV) file may resolve this. See [[Delete and resync SPV file]]&lt;br /&gt;
&lt;br /&gt;
== Bisq is using too much RAM ==&lt;br /&gt;
&lt;br /&gt;
* Limiting the maximum amount of RAM the JVM thinks your machine has may resolve this. See [[Reduce JVM MAXRam]]&lt;br /&gt;
&lt;br /&gt;
== My problem isn't addressed here ==&lt;br /&gt;
&lt;br /&gt;
See [[user support]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Stubs]]&lt;br /&gt;
[[Category:Client]]&lt;/div&gt;</summary>
		<author><name>Ghubstan</name></author>
		
	</entry>
</feed>