Kevin,
On 4/3/23 12:32, Kevin Huntly wrote:
ok, can you tell me what your thoughts are? I'm always interested in new
things
I would recommend sending an alert to a realtime management system, if
at all possible. There are no guarantees if the JVM experiences some
trouble, but in my experience, OOME -> script to ping a management
system is fairly reliable.
-chris
On Mon, Apr 3, 2023 at 12:31 PM Christopher Schultz
<ch...@christopherschultz.net <mailto:ch...@christopherschultz.net>> wrote:
Kevin,
On 4/3/23 12:10, Kevin Huntly wrote:
> idk why i add the typeset, but I do everywhere just out of habit.
i was
> trained that way many many moons ago.
>
> Is there anything else in my setenv that needs work?
That mostly depends upon your environment. The only thing that stuck
out
to me was the JAVA_OPTS versus CATALINA_OPTS. I didn't even notice that
all the JMX configuration would have caused port conflicts, too. So
there is another reason to only use CATALINA_OPTS for that stuff.
Some of what you have in that script is not having any effect on Tomcat
itself. But it may be serving other purposes.
I have some personal thoughts about things like what should be done on
OOMEs but again those are very environment-specific.
-chris
> On Mon, Apr 3, 2023 at 11:57 AM Christopher Schultz <
> ch...@christopherschultz.net
<mailto:ch...@christopherschultz.net>> wrote:
>
>> Kevin,
>>
>> On 4/3/23 10:07, Kevin Huntly wrote:
>>> I'm launching with startup.sh and I have a setenv:
>>>
>>> https://pastebin.com/PKRgz2y1 <https://pastebin.com/PKRgz2y1>
>> >
>> > typeset JAVA_OPTS="-Xms4096m -Xmx4096m -Dfile.encoding=utf-8
>> -Djava.awt.headless=true";
>>
>> You don't want this. You want:
>>
>> typeset CATALINA_OPTS="-Xms4096m -Xmx4096m -Dfile.encoding=utf-8
>> -Djava.awt.headless=true";
>>
>> (I'm not sure why you are bothering with "typeset". IMHO it adds
nothing
>> but extra characters to the file and or someone so say "what the
hell is
>> typset?")
>>
>> CATALINA_OPTS are used when launching Tomcat. JAVA_OPTS are used
when
>> launching any kind of JVM. An example is when shutting-down
Tomcat. Your
>> JAVA_OPTS sets the heap size to 4 GiB, but you only need like
5MiB to
>> launch the "please shutdown" process, so a 4GiB heap for that is
overkill.
>>
>> -chris
>>
>>> ________________________________________________
>>>
>>> Kevin Huntly
>>> Email: kmhun...@gmail.com <mailto:kmhun...@gmail.com>
>>> Cell: 716/424-3311
>>> ________________________________________________
>>>
>>> -----BEGIN GEEK CODE BLOCK-----
>>> Version: 1.0
>>> GCS/IT d+ s a C++ UL+++$ P+(++) L+++ E---
>>> W+++ N+ o K(+) w--- O- M-- V-- PS+ PE Y(+)
>>> PGP++(+++) t+ 5-- X-- R+ tv+ b++ DI++ D++
>>> G++ e(+) h--- r+++ y+++*
>>> ------END GEEK CODE BLOCK------
>>>
>>>
>>> On Mon, Apr 3, 2023 at 10:03 AM Christopher Schultz <
>>> ch...@christopherschultz.net
<mailto:ch...@christopherschultz.net>> wrote:
>>>
>>>> Kevin,
>>>>
>>>> On 4/2/23 09:08, Kevin Huntly wrote:
>>>>> Couple questions:
>>>>>
>>>>> 1. Is there a way to change the default "stdout" to a
different name?
>>>> e.g.
>>>>> SystemOut.log (and by extension, can syserr be printed to
something
>>>>> SystemErr.log?)
>>>>
>>>> How are you launching Tomcat?
>>>>
>>>>> 2. When verbose:gc is turned on it logs a ton of stuff to
stdout, can
>>>> that
>>>>> output be redirected to a different file?
>>>>
>>>> Have you tried google or "java -X"?
>>>>
>>>> -chris
>>>>
>>>>
---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
<mailto:users-unsubscr...@tomcat.apache.org>
>>>> For additional commands, e-mail: users-h...@tomcat.apache.org
<mailto:users-h...@tomcat.apache.org>
>>>>
>>>>
>>>
>>
>>
---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
<mailto:users-unsubscr...@tomcat.apache.org>
>> For additional commands, e-mail: users-h...@tomcat.apache.org
<mailto:users-h...@tomcat.apache.org>
>>
>>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org