On Tue, May 12, 2020 at 5:13 PM Christopher Schultz <
ch...@christopherschultz.net> wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA256
>
> Patrick,
>
> On 5/12/20 17:08, Patrick Baldwin wrote:
> > 102$ sudo service tomcat start Redirecting to /bin/systemctl start
> > tomcat.service
>
> Uhh, doesn't that just call systemd?
>
> Are you sure it's restarting at all?
>
>
Yes, I can watch it go up and down in the logs.


> If you launch Tomcat with catalina.sh or anything which has been
> modelled after it, it will run setenv.sh for you. But systemd has
> other plans.
>
> There is no catalina.sh that I can find.  When I googled that, I found:

https://forums.centos.org/viewtopic.php?t=54207



> You should be able to use systemd for this. You just need to convince
> it to pass extra parameters to the JVM when it starts. Maybe Coty
> (RedHat) or Emmanuel (Debian) can give some advice on this. I'm no
> systemd expert.
>
> If I can get it going that way, I'll definitely try it.  It's just odd
this was running for months with this config using setenv.sh and now this
has apparently spontaneously started.


> - -chris
>
> > On Tue, May 12, 2020 at 5:07 PM calder <calder....@gmail.com>
> > wrote:
> >
> >> On Tue, May 12, 2020, 15:49 Patrick Baldwin
> >> <pbald...@myersinfosys.com> wrote:
> >>
> >>> I turned off systemd for tomcat:
> >>>
> >>> 84$ sudo systemctl disable tomcat
> >>
> >>
> >>
> >> [ snip ]
> >>
> >>> Restarted tomcat,  and it still runs for about 2 minutes then
> >>> throws
> >>
> >> that java.lang.OutOfMemoryError: Java heap space error and dies.
> >>
> >>
> >>
> >> And how are you starting TC, as now not using Systemd?
> >>
> >
> -----BEGIN PGP SIGNATURE-----
> Comment: Using GnuPG with Thunderbird - https://www.enigmail.net/
>
> iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAl67EX4ACgkQHPApP6U8
> pFhIyA/+LzV9Ta95tx5RKkBZVLS5e4iVjS06CLmp3qkyvzfNOU+ryXaWILSibpRA
> 8Y7JV+M5AJjY6J/2nlXAddTivNVbtXBYAttuXJyWirM1RkEEGF53hVrxcj+FK/zD
> hCi1fxveBxCz63txBqy6La16Xh3qcK9b0l5PX7iAQVsPuv0hPxkCvg0maxFtlyiA
> DNrtFFdlNlPCvhXR8nAia7RLp02wbBUG8FdlN/MUqi6YEzwq6H0uYbiz9EE/3aMa
> IL1Kr2M/fm6eZl2OmECvc+Lh+vFgYvK4H4tWH+z6irUwYOXNFmJAm6ulU8XTn5ox
> NYU4aPlw7Y1Ez0FYBxohH6D4cA6DA+8rH8d2Aniw4Xj/LQNiZOxJwfYAYJvFP78H
> okwbBCr9HAvS96uQo7Y1znq9t+v0rG44lVu7l0gYAmC8yHQnHDUyf9k6OQ0ILZ5a
> LQorjrJZjbQ+i1m6amZIpzua3bOGX69rHtsxwZCj0KL1FQdhW4LPMJrJ5/SdSo7+
> ryO6dMzpJtKBMJeYjPIOCFXNickDlPc9cwbyn5Bow4gAwkDRjn1WduyNLHSdjK+U
> DPTZULtLyaOYWDWT0T28LWha+911b6uoKgNvANPm4r6A51rt4rDz0gbDeG/U5ygv
> vLSaO0PHjcfJbN8dri9YMcUTl0fezXeaMrR9ae44y324NzaJKIk=
> =ccOJ
> -----END PGP SIGNATURE-----
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>

Reply via email to