Indeed, -Xss is the stack size, this amount gets allocated for each thread
created. I believe the default is 1MB. A general rule of thumb is to increase
it conservatively if you get a stack overflow error in the app.
p
Trevor Thornton wrote on 2021-03-25 16:59:00:
> I may not be understanding it
I may not be understanding it completely, but from what I've read 256k is
typical for a 64-bit JVM. Given that, 2m is comparatively big. 1g is 500
times the default, which seems excessively big.
On Wed, Mar 24, 2021 at 3:06 PM Tom Hanstra wrote:
> My understand/reading regarding this setting is
My understand/reading regarding this setting is that it is the thread size
for Java, and has to be big enough to handle the work but cannot be too big
either. The default of 2m seems very low. I have been working with the 1g
size lately but am not sure that is optimal either. I'd be curious to
I'm doing this exact thing right now and I wanted to confirm that the 'g'
here shouldn't be an 'm':
ASPACE_JAVA_XSS="-Xss1g"
The default looks to be:
ASPACE_JAVA_XSS="-Xss2m"
https://github.com/archivesspace/archivesspace/blob/master/launcher/archivesspace.sh#L105
On Wed, Mar 24, 2021 at 11:43
Hmmm. So I finally tracked the issue down to my Java settings. For some
reason, before/during indexing, Java settings of:
ASPACE_JAVA_XMX="-Xmx8192m"
ASPACE_JAVA_XSS="-Xss4g"
worked fine. But, once indexing was complete, those settings were somehow
unusable. Staff connection would not
Tom Hanstra wrote on 2021-03-24 09:25:24:
> So, I am now further than I've been yet, at least based upon the logs. But
> I still have something not working properly, because when I do a search and
> find output, nothing is coming up when I try to look at the found record. I
> get the error:
>
>
Whew! Ok, my logs now say that both Staff and PUI have been indexed. So I
got that far finally. Thanks to both Blake and Mark for suggestions. The
combination of staggering Staff and then PUI indexing as well as moving to
1 thread seems to have helped.
So, I am now further than I've been yet, at