Bitcoin Forum
October 22, 2019, 07:44:51 AM *
News: Latest Bitcoin Core release: 0.18.1 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 ... 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 [352] 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 ... 2567 »
  Print  
Author Topic: NXT :: descendant of Bitcoin - Updated Information  (Read 2756221 times)
notsoshifty
Sr. Member
****
Offline Offline

Activity: 364
Merit: 250


View Profile
December 24, 2013, 06:26:02 PM
 #7021

How to upgrade your NXT node guide.


It's a nice guide. But to reduce unnecessary traffic on other nodes shouldn't we aim to keep the existing block chain as part of the upgrade process?

(At least, when it's a clean upgrade that isn't due to a corrupted block chain. I've sometimes seen NPEs in the logs which could only be fixed by starting from zero or from a known good partial block chain).

So - that would mean:
 - Graceful shutdown, rather than kill -9
 - Copying over the old block data after unzipping

Also, a 'verify shasum' step is optional but should be encouraged...


The Bitcoin network protocol was designed to be extremely flexible. It can be used to create timed transactions, escrow transactions, multi-signature transactions, etc. The current features of the client only hint at what will be possible in the future.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1571730291
Hero Member
*
Offline Offline

Posts: 1571730291

View Profile Personal Message (Offline)

Ignore
1571730291
Reply with quote  #2

1571730291
Report to moderator
1571730291
Hero Member
*
Offline Offline

Posts: 1571730291

View Profile Personal Message (Offline)

Ignore
1571730291
Reply with quote  #2

1571730291
Report to moderator
laowai80
Member
**
Offline Offline

Activity: 98
Merit: 10


View Profile
December 24, 2013, 06:28:03 PM
 #7022

How to upgrade your NXT node guide.


It's a nice guide. But to reduce unnecessary traffic on other nodes shouldn't we aim to keep the existing block chain as part of the upgrade process?

(At least, when it's a clean upgrade that isn't due to a corrupted block chain. I've sometimes seen NPEs in the logs which could only be fixed by starting from zero or from a known good partial block chain).

So - that would mean:
 - Graceful shutdown, rather than kill -9
 - Copying over the old block data after unzipping

Also, a 'verify shasum' step is optional but should be encouraged...


Well, I guess you have valid points, but at this time since the blockchain is small, that'll do I guess.
Or maybe it's really best to copy the files.
Let's ask CfB Smiley
relm9
Hero Member
*****
Offline Offline

Activity: 840
Merit: 1000



View Profile
December 24, 2013, 06:28:16 PM
Last edit: December 24, 2013, 06:43:53 PM by relm9
 #7023

With the latest 0.4.4 release my client seems to have gotten stuck and isn't grabbing blocks. It just gets block 0 then seems to stall. There are no peers listed under active either. Tried deleting blocks.nxt, any other ideas?

Edit: Hmm, working now but took a few restarts
notsoshifty
Sr. Member
****
Offline Offline

Activity: 364
Merit: 250


View Profile
December 24, 2013, 06:36:01 PM
 #7024

if you have a node with 512 Mb RAM:
nohup java -Xms450m -Xmx480m -jar start.jar &

if you have a node with 1 GB RAM:
nohup java -Xms700m -Xmx900m -jar start.jar &

if you have a node with 2 GB RAM:
nohup java -Xms1500m -Xmx1800m -jar start.jar &

Ah, one more point on this guide - which otherwise I like, sorry I'm being picky Wink

If a server has 512MB RAM then a max heap size of 480MB is likely to be too large. There is the perm gem to think about (currently something like 20MB, but could go higher if more is added to the distribution), plus general memory used by the Java process itself, plus anything used by the OS and any other applications you have running. Setting a heap size such that Java needs to write to swap normally results in bad performance.

Same for the other values.
opticalcarrier
Full Member
***
Offline Offline

Activity: 238
Merit: 100



View Profile
December 24, 2013, 06:36:29 PM
 #7025

what does it mean when my unlocked client is seeing new blocks (i see 24010 at 332%) but no countdown timer to forge next block?
laowai80
Member
**
Offline Offline

Activity: 98
Merit: 10


View Profile
December 24, 2013, 06:39:15 PM
 #7026

if you have a node with 512 Mb RAM:
nohup java -Xms450m -Xmx480m -jar start.jar &

if you have a node with 1 GB RAM:
nohup java -Xms700m -Xmx900m -jar start.jar &

if you have a node with 2 GB RAM:
nohup java -Xms1500m -Xmx1800m -jar start.jar &

Ah, one more point on this guide - which otherwise I like, sorry I'm being picky Wink

If a server has 512MB RAM then a max heap size of 480MB is likely to be too large. There is the perm gem to think about (currently something like 20MB, but could go higher if more is added to the distribution), plus general memory used by the Java process itself, plus anything used by the OS and any other applications you have running. Setting a heap size such that Java needs to write to swap normally results in bad performance.

Same for the other values.


What values would you advise for the above cases? I am not a java expert, so any suggestions are welcome.
colinistheman
Hero Member
*****
Offline Offline

Activity: 869
Merit: 1000



View Profile WWW
December 24, 2013, 06:39:23 PM
 #7027

Is it true that the only way for someone to get their first NXT coins would be to purhcase them or be given them? Since there is no proof of work system? I understand that you can forge more once you own some, but how do you get your initial NXT ?
ferment
Full Member
***
Offline Offline

Activity: 168
Merit: 100


IDEX - LIVE Real-time DEX


View Profile
December 24, 2013, 06:40:33 PM
 #7028

Working on node infrastructure with a full redesign of nxtbase to support 100+. I won't open source my new management stuff for a bit, but here's a handy one for you VPSers running ubuntu.

Code:
$ sudo apt-get install --yes supervisor
$ sudo service supervisor restart

Then copy file like this to /etc/supervisor/conf.d/nrs.conf:
Code:
[program:nrs]
command=java -Xms$MIN -Xmx$MAX -jar start.jar
autostart=true
autorestart=true
stderr_logfile=/home/$USER/nxt/logs/stderr.log
stdout_logfile=/home/$USER/nxt/logs/stdout.log
user=$USER
directory=/home/$USER/nxt

Replace $MIN and $MAX with your memory limits. Replace $USER with your user. The run:
Code:
$ sudo supervisorctl reread
$ sudo supervisorctl update
$ sudo supervisorctl status

Now, what do you get for your efforts?

Restart on crash
Restart on reboot
handy commands for start/stop/restart/status (sudo supervisorctl CMD nrs).

Cool huh?

EmoneyRu
Hero Member
*****
Offline Offline

Activity: 600
Merit: 500

Nxt-kit developer


View Profile
December 24, 2013, 06:42:12 PM
 #7029

Well, I guess you have valid points, but at this time since the blockchain is small, that'll do I guess.
Or maybe it's really best to copy the files.

For now, when there is a lot of blockchains and a few hosts, re-downloading it is good idea. You most probably get most popular chain.
In future, ofc, it is better to save previous one

abctc
Legendary
*
Offline Offline

Activity: 1666
Merit: 1004



View Profile
December 24, 2013, 06:42:34 PM
 #7030

what does it mean when my unlocked client is seeing new blocks (i see 24010 at 332%) but no countdown timer to forge next block?
- may be you opened your new account with freshly bought NXTs (they need to mature)?

█████████████████████████████████████████████████
███████████████████████████████████████████████████
█████████████████████████████████████████████████████
█████████████████████████████████████████████████████
██████████████████████████████████████████████████████
█████
█████████████████████████████████████████████████████████████
██████████████████████████████████████████████████████
███████████████████████████████████████████████████████
█████████████████████████████████████████████████████████████
███████████████████████████████████████████████████████████████
██████████████████████████████████████████████████████████████████
   
, the Next platform.  Magis quam Moneta (More than a Coin)
laowai80
Member
**
Offline Offline

Activity: 98
Merit: 10


View Profile
December 24, 2013, 06:43:31 PM
 #7031

Well, I guess you have valid points, but at this time since the blockchain is small, that'll do I guess.
Or maybe it's really best to copy the files.

For now, when there is a lot of blockchains and a few hosts, re-downloading it is good idea. You most probably get most popular chain.
In future, ofc, it is better to save previous one

Yeah, so I'll update the guide in the future multiple times, as new features and parameters will be added.
Damelon
Legendary
*
Offline Offline

Activity: 1092
Merit: 1001



View Profile
December 24, 2013, 06:45:05 PM
 #7032

Is it true that the only way for someone to get their first NXT coins would be to purhcase them or be given them? Since there is no proof of work system? I understand that you can forge more once you own some, but how do you get your initial NXT ?

You can get one NXT at the faucet link on the first page of this thread.
Also, there are some giveaways around on the NXT forum: https://nextcoin.org/index.php/board,29.0.html

Member of the Nxt Foundation | Donations: NXT-D6K7-MLY6-98FM-FLL5T
Join Nxt Slack! https://nxtchat.herokuapp.com/
Founder of Blockchain Workspace | Personal Site & Blog
colinistheman
Hero Member
*****
Offline Offline

Activity: 869
Merit: 1000



View Profile WWW
December 24, 2013, 06:46:03 PM
 #7033

Is it true that the only way for someone to get their first NXT coins would be to purhcase them or be given them? Since there is no proof of work system? I understand that you can forge more once you own some, but how do you get your initial NXT ?

You can get one NXT at the faucet link on the first page of this thread.
Also, there are some giveaways around on the NXT forum: https://nextcoin.org/index.php/board,29.0.html
But those are fairly small quantities. So basically you have to pay for NXT. different than other coins which you can mine from scratch
notsoshifty
Sr. Member
****
Offline Offline

Activity: 364
Merit: 250


View Profile
December 24, 2013, 06:49:57 PM
 #7034

What values would you advise for the above cases? I am not a java expert, so any suggestions are welcome.

I'm also not sure - but (assuming the PermGen usage stays the same) then I think at least 120MB less than the total available RAM, i.e. around 392MB for a 512MB server. If you could do some tests with those settings and see how much memory/swap is used on the server.

Actually I don't really understand why this application needs so much RAM, even when run on a hallmarked supernode that gets a lot of traffic. I've been running with a 2GB heap (3.7GB server) for about 3 hours with what seems like a lot of traffic, and so far no full GC. On 4.0.0 I did have two crashes; they weren't due to Java out of memory exceptions, but rather the OS not being able to allocate any memory to Java. The server has >1GB free, so that's strange...

You can add this to the JVM parameters to get some info on the GC activity:

 -verbose:gc -Xloggc:gc.log -XX:+PrintGCDateStamps -XX:+PrintGCDetails

And then check gc.log.
opticalcarrier
Full Member
***
Offline Offline

Activity: 238
Merit: 100



View Profile
December 24, 2013, 06:50:15 PM
 #7035

Working on node infrastructure with a full redesign of nxtbase to support 100+. I won't open source my new management stuff for a bit, but here's a handy one for you VPSers running ubuntu.

Code:
$ sudo apt-get install --yes supervisor
$ sudo service supervisor restart

Then copy file like this to /etc/supervisor/conf.d/nrs.conf:
Code:
[program:nrs]
command=java -Xms$MIN -Xmx$MAX -jar start.jar
autostart=true
autorestart=true
stderr_logfile=/home/$USER/nxt/logs/stderr.log
stdout_logfile=/home/$USER/nxt/logs/stdout.log
user=$USER
directory=/home/$USER/nxt


will it work on debian 7 x64?
Replace $MIN and $MAX with your memory limits. Replace $USER with your user. The run:
Code:
$ sudo supervisorctl reread
$ sudo supervisorctl update
$ sudo supervisorctl status

Now, what do you get for your efforts?

Restart on crash
Restart on reboot
handy commands for start/stop/restart/status (sudo supervisorctl CMD nrs).

Cool huh?
techo051
Sr. Member
****
Offline Offline

Activity: 250
Merit: 250


View Profile
December 24, 2013, 06:50:32 PM
 #7036


@ ferment  I sent 20,000 nxt to your donation address, 18000 for 6 nodes...2000 for your efforts..get to work  Wink

HA! Thank you. That almost makes another 10 for the yet-to-be-determined data center.

Votes? Hong Kong, Sydney, Europe?

Good times!

I would like to do something similar to support setting up nodes or VPS. Don't have the technical knowledge myself but am happy to donate some nxt. I can donate 15K for this, but who should I send it to? ferment do you have capacity to do more? Or EmoneyRu?

Yes, I can do more. It will take a few days (particularly with Christmas coming), but my goal is a 100+ node network in 10 geographic locations by Jan 3. We're almost halfway there!

Send donations to 11243542237777034551 and I'll run 1 node per 3000 nxt until the end of March.

Thank you!

Cool thanks. Just sent you 9K and will send some to laowai80 as well. Thanks for doing that!
Damelon
Legendary
*
Offline Offline

Activity: 1092
Merit: 1001



View Profile
December 24, 2013, 06:51:38 PM
 #7037

Is it true that the only way for someone to get their first NXT coins would be to purhcase them or be given them? Since there is no proof of work system? I understand that you can forge more once you own some, but how do you get your initial NXT ?

You can get one NXT at the faucet link on the first page of this thread.
Also, there are some giveaways around on the NXT forum: https://nextcoin.org/index.php/board,29.0.html
But those are fairly small quantities. So basically you have to pay for NXT. different than other coins which you can mine from scratch

True, if you want 1000+ quantities, you have to buy (invest money) or help out (invest time/effort)

Mind you, there are/were some 500 NXT giveaways. That´s a relatively good sum.

If you think this is worthwhile to invest in, do so. If not, don´t. It´s as simple as that, really.

Member of the Nxt Foundation | Donations: NXT-D6K7-MLY6-98FM-FLL5T
Join Nxt Slack! https://nxtchat.herokuapp.com/
Founder of Blockchain Workspace | Personal Site & Blog
bizz
Hero Member
*****
Offline Offline

Activity: 492
Merit: 500


View Profile
December 24, 2013, 06:52:42 PM
 #7038

Is it true that the only way for someone to get their first NXT coins would be to purhcase them or be given them? Since there is no proof of work system? I understand that you can forge more once you own some, but how do you get your initial NXT ?

You can get one NXT at the faucet link on the first page of this thread.
Also, there are some giveaways around on the NXT forum: https://nextcoin.org/index.php/board,29.0.html
But those are fairly small quantities. So basically you have to pay for NXT. different than other coins which you can mine from scratch

Nope. You have to pay for GPUs or ASICs first.
ferment
Full Member
***
Offline Offline

Activity: 168
Merit: 100


IDEX - LIVE Real-time DEX


View Profile
December 24, 2013, 06:53:09 PM
 #7039


Yes, I can do more. It will take a few days (particularly with Christmas coming), but my goal is a 100+ node network in 10 geographic locations by Jan 3. We're almost halfway there!

Send donations to 11243542237777034551 and I'll run 1 node per 3000 nxt until the end of March.

Thank you!

Cool thanks. Just sent you 9K and will send some to laowai80 as well. Thanks for doing that!

Awesome! Thanks! I'm working on automation today, but by the end of the week (After christmas), there will be a ton of nodes!


mr_random
Legendary
*
Offline Offline

Activity: 1120
Merit: 1001

CryptoTalk.Org - Get Paid for every Post!


View Profile
December 24, 2013, 06:53:31 PM
 #7040

Working on node infrastructure with a full redesign of nxtbase to support 100+. I won't open source my new management stuff for a bit, but here's a handy one for you VPSers running ubuntu.

Code:
$ sudo apt-get install --yes supervisor
$ sudo service supervisor restart

Then copy file like this to /etc/supervisor/conf.d/nrs.conf:
Code:
[program:nrs]
command=java -Xms$MIN -Xmx$MAX -jar start.jar
autostart=true
autorestart=true
stderr_logfile=/home/$USER/nxt/logs/stderr.log
stdout_logfile=/home/$USER/nxt/logs/stdout.log
user=$USER
directory=/home/$USER/nxt

Replace $MIN and $MAX with your memory limits. Replace $USER with your user. The run:
Code:
$ sudo supervisorctl reread
$ sudo supervisorctl update
$ sudo supervisorctl status

Now, what do you get for your efforts?

Restart on crash
Restart on reboot
handy commands for start/stop/restart/status (sudo supervisorctl CMD nrs).

Cool huh?

Nice tips. Thanks.

 
                                . ██████████.
                              .████████████████.
                           .██████████████████████.
                        -█████████████████████████████
                     .██████████████████████████████████.
                  -█████████████████████████████████████████
               -███████████████████████████████████████████████
           .-█████████████████████████████████████████████████████.
        .████████████████████████████████████████████████████████████
       .██████████████████████████████████████████████████████████████.
       .██████████████████████████████████████████████████████████████.
       ..████████████████████████████████████████████████████████████..
       .   .██████████████████████████████████████████████████████.
       .      .████████████████████████████████████████████████.

       .       .██████████████████████████████████████████████
       .    ██████████████████████████████████████████████████████
       .█████████████████████████████████████████████████████████████.
        .███████████████████████████████████████████████████████████
           .█████████████████████████████████████████████████████
              .████████████████████████████████████████████████
                   ████████████████████████████████████████
                      ██████████████████████████████████
                          ██████████████████████████
                             ████████████████████
                               ████████████████
                                   █████████
.CryptoTalk.org.|.MAKE POSTS AND EARN BTC!.🏆
Pages: « 1 ... 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 [352] 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 ... 2567 »
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!