Nem local nis showing totally different details(ex. balance, importance) compared to publicly available explorer [SOLVED]

Hi all, my first post here.
I have downloaded the latest nis nis-0.6.96. I run the bat(i’m on windows), the network loads fine.
Once i start using the api calls for testing, the results are largely different from publicly available results. Example of results from 3 different sources:

http://san.nem.ninja:7890/account/get?address=NCCFO5QDFV5FS3BTBPEU2QO6UHZD7PHGFNCP----
“balance”: 954366328051,

http://chain.nem.ninja/#/search/NCCFO5QDFV5FS3BTBPEU2QO6UHZD7PHGFNCP----
- Balance (network): 954366.328051 XEM

My local nis

http://localhost:7890/account/get?address=NCCFO5QDFV5FS3BTBPEU2QO6UHZD7PHGFNCP----
- “balance”: 5378526968254

 Also on the note. The local nis seems to change balance very quickly. Every 1 or 2 minutes, once i call the url again. the changes in the balance are in 100 thousands or even millions. 
 
 Has anyone faced this problem before? Or am i doing something wrong. Any comment is highly appreciated

Is your node synchronized?
Please provide result from:
/chain/height
/node/extended-info
endpoints

1 Like

There are the results:

{“height”:1814372}

{“node”:{“metaData”:{“features”:1,“application”:null,“networkId”:104,“version”:“0.6.96-BETA”,“platform”:“Oracle Corporation (1.8.0_181) on Linux”},“endpoint”:{“protocol”:“http”,“port”:7890,“host”:“66.42.56.58”},“identity”:{“name”:“NC73TY4FW2BC5GCBAD4IWGZCI6WBIODS4SQYAOKB”,“public-key”:""}},“nisInfo”:{“currentTime”:113211761,“application”:“NEM Deploy”,“startTime”:112689764,“version”:“0.6.96-BETA”,“signer”:null}}

@shavkat
current height is 1870658 you must wait to synchronize
http://hugealice.nem.ninja:7890/chain/height

1 Like

@CryptoBeliever Thanks for your help.
I just have few other questions maybe you would have answers to.

  • Do you know how long does it approximately take to fully synchronize? because the NIS i’m running has been running for about 4-5 days.
  • I just checked the chain height again, it’s still at 1814372(means in 19 hours it hasn’t changed), Is this normal behavior?

How your start script looks like? Probably you have not enough memory allocated.
Please show runNis script.

1 Like

I’m running it from console in the background without any limitation as (./nix.runNis.sh). So it has access to full memory.
Few things to note the current server has 2gb ram.

Since you mentioned about the memory, just to test it i ran two servers on AWS for around 24 hours. They have 2gb RAM and 4GB ram.
The one with 4gb memory ran until blocked height 1,200,000+ and stopped there. The status changed to 7: NIS local node does not see any remote NIS node (implies running and booted) - from ducomentation.
While the 2gb instance downloaded more blocks, it was at about 20,000+ from the latest network block.

I even downloaded and replaced the database from bob.nem.ninja. The problem is still persisting.

I will keep trying and looking for solutions online. If any updates, i will post here.

@shavkat it has limitations defined in nix.runNis.sh. Just open this file in vim, less, nano or whatever you like.
Max memory process can allocate is defined by Xmx property as in each java program.
Let me know how this start command looks like.
Thanks

1 Like

I have definitely missed that. I made the changes on the .sh file and now it is working like a charm. The network is properly synchronized.
A big thanks for all your help @CryptoBeliever . i definitely would have been going in circles without your help.

1 Like