Re: Ignite cache failed to read by key intermittently

2022-09-19 Thread Charlin S
Hi, I already attached server config in the same mail thread( along with sample code). Regards, Charlin On Tue, 20 Sept 2022 at 11:50, Pavel Tupitsyn wrote: > Now the client starts, but cannot connect to a server. How do I start a > server, do you use a config file or something else? > > On Tu

Re: Ignite cache failed to read by key intermittently

2022-09-19 Thread Pavel Tupitsyn
Now the client starts, but cannot connect to a server. How do I start a server, do you use a config file or something else? On Tue, Sep 20, 2022 at 9:15 AM Charlin S wrote: > Hi, > Sorry for inconvenience, I have removed local machine path dependency. > > Regards, > Charlin > > > On Tue, 20 Sept

Re: Ignite cache failed to read by key intermittently

2022-09-19 Thread Charlin S
Hi, Sorry for inconvenience, I have removed local machine path dependency. Regards, Charlin On Tue, 20 Sept 2022 at 11:04, Pavel Tupitsyn wrote: > Still can't run, sorry. It has hardcoded directories from your machine > (IgniteSettings.IGNITE_HOME, IgniteSettings.WorkDirectory - commented them

Re: Ignite cache failed to read by key intermittently

2022-09-19 Thread Pavel Tupitsyn
Still can't run, sorry. It has hardcoded directories from your machine (IgniteSettings.IGNITE_HOME, IgniteSettings.WorkDirectory - commented them out), and also GlobalVariables.IgniteSettings.ConfigurationPath: > Spring XML configuration path is invalid: D:\NGSourceCode\IgniteConfig\Labs/common_dy

Re[4]: What is data-streamer-stripe threasd?

2022-09-19 Thread Zhenya Stanilovsky via user
It`s up to you, if it not annoying you leave it as it is and fill otherwise )   >Nah, it's fine just wanted to make sure what it was. Unless you think I should >log at least an issue? >    >On Wed, Sep 14, 2022 at 3:13 AM Zhenya Stanilovsky via user < >user@ignite.apache.org > wrote: >>Yep, i

Re: Re[2]: What is data-streamer-stripe threasd?

2022-09-19 Thread John Smith
Nah, it's fine just wanted to make sure what it was. Unless you think I should log at least an issue? On Wed, Sep 14, 2022 at 3:13 AM Zhenya Stanilovsky via user < user@ignite.apache.org> wrote: > Yep, i already mention that you can`t disable this pool at all and 1 > worker thread still be visib

Re: How to calculate the amount of memory used by a cache or dataregion

2022-09-19 Thread 38797715
We know Ignite has the function of automatic memory defragmentation: https://ignite.apache.org/docs/latest/memory-architecture#memory-defragmentation I want to ask what is the threshold for triggering this function? 在 2022/9/19 22:36, Alexander Polovtcev 写道: Hm, I don't know, honestly. We need

Re: How to calculate the amount of memory used by a cache or dataregion

2022-09-19 Thread Alexander Polovtcev
Hm, I don't know, honestly. We need to look at the code or somebody else can give us a hint. On Mon, Sep 19, 2022 at 2:55 PM 38797715 <38797...@qq.com> wrote: > if native persistence enabled, the result is the same. > > It seems that there is a bug in the calculation of the "PagesFillFactor" > me

Re: Ignite cache failed to read by key intermittently

2022-09-19 Thread Charlin S
Hi, I have attached here. Regards, Charlin On Mon, 19 Sept 2022 at 19:00, Pavel Tupitsyn wrote: > I get an exception when trying to run the code: > > Unhandled exception. System.NullReferenceException: Object reference not > set to an instance of an object. >at ConsoleApp4.IgniteInstance..c

Re: Ignite cache failed to read by key intermittently

2022-09-19 Thread Pavel Tupitsyn
I get an exception when trying to run the code: Unhandled exception. System.NullReferenceException: Object reference not set to an instance of an object. at ConsoleApp4.IgniteInstance..ctor() in /home/pavel/Downloads/ConsoleApp4/ConsoleApp4/ConsoleApp4/IgniteInstance.cs:line 47 at ConsoleApp

Re: Ignite cache failed to read by key intermittently

2022-09-19 Thread Charlin S
Hi, Cache EexpiryPolicy is 60 minutes. but cache key failing in between and return data after some time so its not due to expiry policy. I have prepared a separate solution and attached it here. I am sharing a cache data reading time screenshot for your reference . [image: image.png] Regards, Charl

Re: How to calculate the amount of memory used by a cache or dataregion

2022-09-19 Thread 38797715
if native persistence enabled, the result is the same. It seems that there is a bug in the calculation of the "PagesFillFactor" metrics? 在 2022/9/19 17:30, Alexander Polovtcev 写道: Do you have native persistence enabled? On Mon, Sep 19, 2022 at 11:57 AM 38797715 <38797...@qq.com> wrote:

Re: How to calculate the amount of memory used by a cache or dataregion

2022-09-19 Thread 38797715
no, pure memory mode. 在 2022/9/19 17:30, Alexander Polovtcev 写道: Do you have native persistence enabled? On Mon, Sep 19, 2022 at 11:57 AM 38797715 <38797...@qq.com> wrote: 2.10 and 2.13, the same result. 在 2022/9/19 16:54, Alexander Polovtcev 写道: Which version of Ignite do you us

Re: How to calculate the amount of memory used by a cache or dataregion

2022-09-19 Thread Alexander Polovtcev
Do you have native persistence enabled? On Mon, Sep 19, 2022 at 11:57 AM 38797715 <38797...@qq.com> wrote: > 2.10 and 2.13, the same result. > 在 2022/9/19 16:54, Alexander Polovtcev 写道: > > Which version of Ignite do you use? > > On Mon, Sep 19, 2022 at 11:38 AM 38797715 <38797...@qq.com> wrote:

Re: How to calculate the amount of memory used by a cache or dataregion

2022-09-19 Thread 38797715
2.10 and 2.13, the same result. 在 2022/9/19 16:54, Alexander Polovtcev 写道: Which version of Ignite do you use? On Mon, Sep 19, 2022 at 11:38 AM 38797715 <38797...@qq.com> wrote: for example: start a node by ignite.sh. then: CREATE TABLE City (   ID INT,   Name VARCHA

Re: How to calculate the amount of memory used by a cache or dataregion

2022-09-19 Thread Alexander Polovtcev
Which version of Ignite do you use? On Mon, Sep 19, 2022 at 11:38 AM 38797715 <38797...@qq.com> wrote: > for example: > > start a node by ignite.sh. > > then: > > CREATE TABLE City ( > ID INT, > Name VARCHAR, > CountryCode CHAR(3), > District VARCHAR, > Population INT, > PRIMARY KEY (

Re: How to calculate the amount of memory used by a cache or dataregion

2022-09-19 Thread 38797715
for example: start a node by ignite.sh. then: CREATE TABLE City (   ID INT,   Name VARCHAR,   CountryCode CHAR(3),   District VARCHAR,   Population INT,   PRIMARY KEY (ID, CountryCode) ) WITH "template=partitioned, backups=1, affinityKey=CountryCode, CACHE_NAME=City, KEY_TYPE=demo.model.CityKe

Re: How to calculate the amount of memory used by a cache or dataregion

2022-09-19 Thread Alexander Polovtcev
Sorry, I messed up the metric names a little bit, we should use the size metrics, not the page metrics. So the correct formula would be: `TotalUsedSize - (TotalAllocatedSize - PagesFillFactor * TotalAllocatedSize)` On Sun, Sep 18, 2022 at 4:29 PM 38797715 <38797...@qq.com> wrote: > I've checked T

Re: How to calculate the amount of memory used by a cache or dataregion

2022-09-19 Thread Alexander Polovtcev
That's probably due to page fragmentation: TotalUsedPages shows pages that are not *completely* free. Looks like there's no direct metric responsible for this, but I discovered the following workaround: there exists a metric called "PagesFillFactor". It is computed as follows: (TotalAllocatedPages