<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="https://dev1galaxy.org/extern.php?action=feed&amp;tid=7174&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / Tomcat problems in Devuan]]></title>
		<link>https://dev1galaxy.org/viewtopic.php?id=7174</link>
		<description><![CDATA[The most recent posts in Tomcat problems in Devuan.]]></description>
		<lastBuildDate>Wed, 30 Apr 2025 14:33:19 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: Tomcat problems in Devuan]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=55464#p55464</link>
			<description><![CDATA[<p>I found <a href="https://wiki.debian.org/Limits" rel="nofollow">here</a> that there is no pam_limits.so in common-session-noninteractive and common-session by design. Apache 2 can be preconfiured via /etc/apache2/envvars and what about tomcat? All manuals are only about systemd.</p><p>Now i put <strong>ulimit -n 16384</strong> directly in&#160; /etc/init.d/tomcat9 and it is working, but what is the right way?</p>]]></description>
			<author><![CDATA[dummy@example.com (IdeaFix)]]></author>
			<pubDate>Wed, 30 Apr 2025 14:33:19 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=55464#p55464</guid>
		</item>
		<item>
			<title><![CDATA[Re: Tomcat problems in Devuan]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=55462#p55462</link>
			<description><![CDATA[<p>i made &quot;nofile = 65535&quot; for tomcat and &quot;nofile = 16384&quot; for root... after restarting tomcat, i see a changes - 1st tomcat process have nofile=16384 (cat /proc/1st_pid/limits) and ither processes has 8192.</p><p>nofile for root allows to change 1st tomcat process configuration, but not others. How to change nofile for tomcat, runned by init script?</p><p>In systemd i can make something like this:</p><div class="codebox"><pre><code>[Service]
Type=forking
User=tomcat
Group=tomcat
LimitNOFILE = 65535</code></pre></div><p>Is it possible to make the same thing in /etc/defaults/tomcat?</p>]]></description>
			<author><![CDATA[dummy@example.com (IdeaFix)]]></author>
			<pubDate>Wed, 30 Apr 2025 11:27:51 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=55462#p55462</guid>
		</item>
		<item>
			<title><![CDATA[Re: Tomcat problems in Devuan]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=55461#p55461</link>
			<description><![CDATA[<p>I also see no &quot;pam_limits.so&quot;</p><p>here:<br />/etc/pam.d/common-session-noninteractive<br />/etc/pam.d/common-session</p>]]></description>
			<author><![CDATA[dummy@example.com (IdeaFix)]]></author>
			<pubDate>Wed, 30 Apr 2025 10:19:31 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=55461#p55461</guid>
		</item>
		<item>
			<title><![CDATA[Tomcat problems in Devuan]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=55458#p55458</link>
			<description><![CDATA[<p>Hi. I have some problems with tomcat:</p><p>1. It is unclear for me how to change running user. All modern manuals are for systemd. I tried to edit /etc/defaults/tomcat in tomcat7 style, but it is not working fine. I tried to edit /etc/init.d/tomcat9, but... Deviuan is not LFS.</p><p>2. It is unclear for me how tomcat security is working now. In systemd based systems I usually need only to put RW paths in unit file. In devuan I tried ro use tomcat9 security switch in /etc/defaults/tomcat and additional configs in policy.d. It is working now, but I found no documentation about it.</p><p>3. It is unclear for me how to run tomcat in 80 port on modern devuan. I want to find a silution wothout firewalls anp proxies. Solutions form tomcat7 and systemd based solutions are not working.</p><p>3. &quot;Too many open files&quot;. Now i see 1024 when run &quot;ulimit -n&quot;. I can run &quot;ulimit -n 4096&quot;, but i can not store 4096 after reboot. I tried to add in /etc/security/limits.conf something like this</p><div class="codebox"><pre><code>* soft nofile 2048
* hard nofile 2048</code></pre></div><p>But i see 1024 after reboot. I need to change this option only for &quot;tomcat&quot; process or &quot;tomcat&quot; user. All manuals are about how to edit systemd unit to make another limit value.</p>]]></description>
			<author><![CDATA[dummy@example.com (IdeaFix)]]></author>
			<pubDate>Wed, 30 Apr 2025 07:30:46 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=55458#p55458</guid>
		</item>
	</channel>
</rss>
