thanks Ilya for the quick reply.
 
So I guess that when I increase the memory for tomcat, then the Ignite process running within my tomcat based web application will take a share of it.
 
It is not that I have large memory requirements, but I want to code the application to be configurable as much as possible.
 
Btw: I have started using Ignite about two month ago. After some first trials with Java and JDBC, I have done some research on using Ignite with the Pentaho PDI (ETL) tool. And then also setup a java service to read from Kafka and store the data in Ignite. My latest attempt is to include Ignite as the caching layer in this webapp.
 
I will try the link this and let you know.
 
Thanks again,
 
Uwe
 
Gesendet: Montag, 07. Oktober 2019 um 13:21 Uhr
Von: "Ilya Kasnacheev" <ilya.kasnach...@gmail.com>
An: user@ignite.apache.org
Betreff: Re: Re: Ignite Servlet with Tomcat: Memory
Hello!
 
 
Regards,
--
Ilya Kasnacheev
 
пн, 7 окт. 2019 г. в 14:11, Uwe Geercken <uwe.geerc...@web.de>:
Hello Ilya,
 
I have added the listener for Ignite like this to my web.xml configuration:
 
<listener>
        <listener-class>org.apache.ignite.startup.servlet.ServletContextListenerStartup</listener-class>
</listener>
 
with followinf parameters:
 
<init-param>
      <param-name>IgniteConfigurationFilePath</param-name>
      <param-value>config/ignite-config.xml</param-value>
</init-param>
 
 
When I run tomcat I get following output:
 
[13:09:24]    __________  ________________
[13:09:24]   /  _/ ___/ |/ /  _/_  __/ __/
[13:09:24]  _/ // (7 7    // /  / / / _/   
[13:09:24] /___/\___/_/|_/___/ /_/ /___/  
[13:09:24]
[13:09:24] ver. 2.7.5#20190603-sha1:be4f2a15
[13:09:24] 2018 Copyright(C) Apache Software Foundation
[13:09:24]
[13:09:24] Ignite documentation: http://ignite.apache.org
[13:09:24]
[13:09:24] Quiet mode.
[13:09:24]   ^-- Logging by 'JavaLogger [quiet=true, config=null]'
[13:09:24]   ^-- To see **FULL** console log here add -DIGNITE_QUIET=false or "-v" to ignite.{sh|bat}
[13:09:24]
[13:09:24] OS: Linux 5.2.17-200.fc30.x86_64 amd64
[13:09:24] VM information: OpenJDK Runtime Environment 1.8.0_222-b10 Oracle Corporation OpenJDK 64-Bit Server VM 25.222-b10
[13:09:24] Please set system property '-Djava.net.preferIPv4Stack=true' to avoid possible problems in mixed environments.
[13:09:24] Initial heap size is 186MB (should be no less than 512MB, use -Xms512m -Xmx512m).
 
 
the last line shows what I mean. I want to configure Xms and Xmx settings, but don't know how to do that.
 
Can you please help?
 
Rgds,
 
Uwe
 
 
Gesendet: Montag, 07. Oktober 2019 um 10:14 Uhr
Von: "Ilya Kasnacheev" <ilya.kasnach...@gmail.com>
An: user@ignite.apache.org
Betreff: Re: Ignite Servlet with Tomcat: Memory
Hello!
 
Can you please provide more info? There's a *lot* of ways to calculate memory usage, we have no idea which one you are referring to. Can you copy the relevant messages?
 
Regards,
--
Ilya Kasnacheev
 
сб, 5 окт. 2019 г. в 15:22, Uwe Geercken <uwe.geerc...@web.de>:
Hello,
 
I have integrated the Ignite servlet with Tomcat. It is running besides my own controller class and works fine.
 
But I wonder how I can increase the heap memory assigned to Ignite. When I start my web container Ignite claims it is using 186Mb as memory. Can somebody please give me a hint of how to increase that?
 
Or is Ignite somehow taking it's memory somehow from Tomcat?
 
Rgds,
 
Uwe

Reply via email to