Skip to content

Commit bd298c6

Browse files
Add note on using -Xss to avoid StackOverflowError
1 parent eca8680 commit bd298c6

File tree

3 files changed

+39
-0
lines changed

3 files changed

+39
-0
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@ To check one or more HTML documents from the command line:
3131

3232
java -jar ~/vnu.jar FILE.html FILE2.html FILE3.HTML FILE4.html...
3333

34+
**Note:** If you get a `StackOverflowError` error when using the vnu.jar file,
35+
try adjusting the thread stack size by providing the `-Xss` option to java:
36+
37+
java -Xss512k -jar ~/vnu.jar FILE.html...
38+
3439
To check all HTML documents in a particular directory:
3540

3641
java -jar ~/vnu.jar some-directory-name/

index.html

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,17 @@ <h2>Usage</h2>
4343
java -jar ~/vnu.jar FILE.html FILE2.html FILE3.HTML FILE4.html...
4444
</pre>
4545

46+
<div class=note>
47+
<p><b>Note:</b> If you get a <code>StackOverflowError</code>
48+
error when using the vnu.jar file, try adjusting the thread stack size by
49+
providing the <code>-Xss</code> option to java:</p>
50+
51+
<pre>
52+
java <span class="option-value">-Xss512k</span> -jar ~/vnu.jar FILE.html...
53+
</pre>
54+
55+
</div>
56+
4657
<p>To check all HTML documents in a particular directory:
4758
<pre>
4859
java -jar ~/vnu.jar some-directory-name/
@@ -199,6 +210,12 @@ <h4 id="version">--version</h4>
199210
margin-right: 2px;
200211
border-radius: 6px;
201212
}
213+
.note {
214+
background-color: rgb(241, 255, 240);
215+
}
216+
.note p {
217+
margin-top: 8px;
218+
}
202219
code {
203220
background-color: #F8F8F8;
204221
border: 1px solid #ccc;

service.html

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,17 @@ <h2>Web-based usage</h2>
4949
that allows you to enter the URL of an HTML document and have the
5050
results for that document displayed in the browser.
5151

52+
<div class=note>
53+
<p><b>Note:</b> If you get a <code>StackOverflowError</code>
54+
error when using the vnu.jar file, try adjusting the thread stack size by
55+
providing the <code>-Xss</code> option to java:</p>
56+
57+
<pre>
58+
java <span class="option-value">-Xss512k</span> -cp ~/vnu.jar nu.validator.servlet.Main 8888
59+
</pre>
60+
61+
</div>
62+
5263
<section id=http-client>
5364
<h2>HTTP client (for fast command-line checking)</h2>
5465

@@ -239,6 +250,12 @@ <h4 id="nuvalidatorclientasciiquotes">nu.validator.client.asciiquotes</h4>
239250
margin-right: 2px;
240251
border-radius: 6px;
241252
}
253+
.note {
254+
background-color: rgb(241, 255, 240);
255+
}
256+
.note p {
257+
margin-top: 8px;
258+
}
242259
code {
243260
background-color: #F8F8F8;
244261
border: 1px solid #ccc;

0 commit comments

Comments
 (0)