Skip to content

Commit 2c928ad

Browse files
authored
Merge pull request #963 from reinhapa/rpc-content-file-pool
Added documentation for content file pool
2 parents 2339886 + 03795cc commit 2c928ad

File tree

1 file changed

+60
-0
lines changed

1 file changed

+60
-0
lines changed

src/main/xar-resources/data/configuration/configuration.xml

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,9 @@
6565
<listitem>
6666
<para><tag>xupdate</tag>: Configuration options related to XUpdate processing.</para>
6767
</listitem>
68+
<listitem>
69+
<para><tag>rpc-server</tag>: Configuration options related to RPC result pooling.</para>
70+
</listitem>
6871
</orderedlist>
6972
<para>The following sections describe the most commonly modified of the above elements,
7073
including how to change the default behavior of eXist-db's handling of whitespace
@@ -994,6 +997,63 @@
994997
</sect3>
995998
</sect2>
996999

1000+
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
1001+
1002+
<sect2 xml:id="rpc-server">
1003+
<title> <tag>rpc-server</tag> element </title>
1004+
1005+
<para>Defines the RPC server backend specific options used to process the requests and caching
1006+
result values.</para>
1007+
1008+
<sect3 xml:id="content-file">
1009+
<title> <tag>rpc-server</tag>/<tag>content-file</tag> element</title>
1010+
1011+
<para>This element configures the maximum amount of data in bytes held in the heap space before
1012+
the data is moved to the temporary disk space. While using memory improves the performance
1013+
and not triggering eventually existing virus scanners it comes with the cost of heap size usage.
1014+
The location, size and other parameters for this file can be set using the
1015+
<tag>content-file</tag> element.</para>
1016+
<para> <tag>content-file</tag> Attributes:</para>
1017+
<variablelist>
1018+
<varlistentry>
1019+
<term> <code>max-in-memory-size</code> </term>
1020+
<listitem>
1021+
<para>Defines the maximum amount of data in bytes to hold in memory, before storing on
1022+
temporary disk space.</para>
1023+
</listitem>
1024+
</varlistentry>
1025+
</variablelist>
1026+
</sect3>
1027+
1028+
<sect3 xml:id="content-file-pool">
1029+
<title> <tag>rpc-server</tag>/<tag>content-file-pool</tag> element</title>
1030+
1031+
<para>This element configures the pool used to hold the content file entries in order to reuse the once
1032+
initialized instances to further improve the performance and to limit the amount of used heap size.
1033+
To calculate the maximum size of used memory the maximum in memory size of a single content file has
1034+
to be multiplied by the size of the pool.
1035+
The location, size and other parameters for this file can be set using the
1036+
<tag>content-file-pool</tag> element.</para>
1037+
<para> <tag>content-file</tag> Attributes:</para>
1038+
<variablelist>
1039+
<varlistentry>
1040+
<term> <code>size</code> </term>
1041+
<listitem>
1042+
<para>Specifies the maximum amount of content file objects that can be in use concurrently.</para>
1043+
</listitem>
1044+
</varlistentry>
1045+
<varlistentry>
1046+
<term> <code>max-idle</code> </term>
1047+
<listitem>
1048+
<para>Defines the maximum amount of idle pool entries that will not be removed for later reuse.</para>
1049+
</listitem>
1050+
</varlistentry>
1051+
</variablelist>
1052+
</sect3>
1053+
1054+
</sect2>
1055+
1056+
9971057
</sect1>
9981058

9991059
<!-- ================================================================== -->

0 commit comments

Comments
 (0)