Bitcoin Forum
July 22, 2019, 07:28:21 PM *
News: Latest Bitcoin Core release: 0.18.0 [Torrent] (New!)
 
   Home   Help Search Login Register More  
Pages: « 1 ... 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 403 ... 2567 »
  Print  
Author Topic: NXT :: descendant of Bitcoin - Updated Information  (Read 2755395 times)
laowai80
Member
**
Offline Offline

Activity: 98
Merit: 10


View Profile
December 24, 2013, 06:55:10 PM
 #7041

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.

Well, hopefully in the future it'll need less RAM, at least for the small nodes with low hallmark values.

I didn't really test it on 512 Mb, I mostly run it on 1-4 GB nodes.

I just saw someone posted those parameters for the 512 MB node and said he could run it ok, so I copy-pasted. I'll try to test it on a 512 Mb node and see how it works. In the setup guide I don't really recommend to use the 512 Mb node. But I really think it has to be able to run on 512 Mb in the future, because that way more nodes are possible.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1563823701
Hero Member
*
Offline Offline

Posts: 1563823701

View Profile Personal Message (Offline)

Ignore
1563823701
Reply with quote  #2

1563823701
Report to moderator
1563823701
Hero Member
*
Offline Offline

Posts: 1563823701

View Profile Personal Message (Offline)

Ignore
1563823701
Reply with quote  #2

1563823701
Report to moderator
ferment
Full Member
***
Offline Offline

Activity: 168
Merit: 100


IDEX - LIVE Real-time DEX


View Profile
December 24, 2013, 06:55:38 PM
 #7042

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
will it work on debian 7 x64?

It should. Let us know!

pmabdsf
Member
**
Offline Offline

Activity: 114
Merit: 10


View Profile
December 24, 2013, 07:01:28 PM
 #7043

In case it helps the network, my node on DigitalOcean




I'm happy to open several more of any kind (with my own cash) if it helps.

If feeling the Christmas spirit, donations or requests:
15862282579517523866

NXT 15862282579517523866
ZeroTheGreat
Hero Member
*****
Offline Offline

Activity: 644
Merit: 500


View Profile
December 24, 2013, 07:01:49 PM
 #7044

Usury capitalism is failing right now. Who doesn't know history is doomed to repeat it.
Debt market is failing (with all economics connected), not a capitalism for itself. Cos system (centralized) took unhandable risks and start collapsing when US turn from creditor to debtor with non-stop growing debt. Not a first collapse in this kind of market, but biggest. Ang longest, perhaps.

My thoughts.
blackfyre175
Newbie
*
Offline Offline

Activity: 34
Merit: 0


View Profile
December 24, 2013, 07:22:01 PM
 #7045

Version 0.4.4 - https://dl.dropboxusercontent.com/u/67242472/nxt.zip

Added Jetty DoSFilter (thx to Edward Elric)
Added myScheme, myPort and shareMyAddress parameters (set them to appropriate values, they will be used in next version)
Added enableHallmarkProtection, set it to "false" if u wish to switch the protection off
blacklistingPeriod is set in milliseconds instead of seconds
logPeerCommunication replaced with communicationLoggingMask (1 - log exceptions, 2 - log responses with non-200 HTTP response codes, 4 - log responses with 200 HTTP response codes), mask values can be combined in standard way
Block feeding chunks increased from 128 KiB to 1 MiB.

NB: Change maxRequestsPerSec value from 3000 to ~30 if u run NRS as a Nxt peer.

Could someone please break some of this down for the less technical. I've read about hallmarks in the wiki, is it recommended that someone who has their wallet open a few hours a day runs a hallmarked node?

If not how does hallmark protection effect those not running a hallmarked node?

myScheme, myPort and shareMyAddress What values should they be set to?

Cheers.


Hallmark nodes are looked to by un-hallmarked nodes for blockchain info. When we were being DDoS attacked, the HallMarked ones were the best targets since taking them offline would effect other non-hall marked nodes. Ideally to prevent that, I think all nodes should be hallmarked.

There is no real benefit with having your wallet open or not. It helps the network, sure, but not your particular account. You need a static IP address to run a hallmarked node, or at least one that doesn't change too often.

But if you're forging for a few hours a day hoping to forge a block then there is a benefit correct?
hoax
Newbie
*
Offline Offline

Activity: 36
Merit: 0


View Profile
December 24, 2013, 07:27:14 PM
 #7046

Started another node with Hallmark on 37.139.12.71, with best wishes to Nxt Smiley
Come-from-Beyond
Legendary
*
Offline Offline

Activity: 2128
Merit: 1009

Newbie


View Profile
December 24, 2013, 07:32:30 PM
 #7047

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

It's better to copy files. Imagine what will happen if everyone deletes the blockchain simultaneously. Cheesy
Come-from-Beyond
Legendary
*
Offline Offline

Activity: 2128
Merit: 1009

Newbie


View Profile
December 24, 2013, 07:35:57 PM
 #7048

Working on node infrastructure with a full redesign of nxtbase to support 100+.

I'm going to add trusted peers list next to well-known peers. U'll be able to create a mini-cluster that shares all the data. Need to think how to implement it in the best way though.
laowai80
Member
**
Offline Offline

Activity: 98
Merit: 10


View Profile
December 24, 2013, 07:36:20 PM
 #7049


It's better to copy files. Imagine what will happen if everyone deletes the blockchain simultaneously. Cheesy

Ok, I'll update the guide.
So copying the .bak versions is the proper way?
ZeroTheGreat
Hero Member
*****
Offline Offline

Activity: 644
Merit: 500


View Profile
December 24, 2013, 07:41:06 PM
 #7050

different than other coins which you can mine from scratch
In another words wasting kWh and amortizing you chips (CPU, GPU or even using special types of chips built for one single purpose...) = paying eq. amount of money (which always eq. to human-hours with a few remarks).
Come-from-Beyond
Legendary
*
Offline Offline

Activity: 2128
Merit: 1009

Newbie


View Profile
December 24, 2013, 07:42:25 PM
 #7051

Quote
Block feeding chunks increased from 128 KiB to 1 MiB


What does this mean exactly, in terms of what it does for the network?

It means that when a feeder gets a request to get new blocks it sends 8 times more blocks at once.
ferment
Full Member
***
Offline Offline

Activity: 168
Merit: 100


IDEX - LIVE Real-time DEX


View Profile
December 24, 2013, 07:42:38 PM
 #7052

Working on node infrastructure with a full redesign of nxtbase to support 100+.

I'm going to add trusted peers list next to well-known peers. U'll be able to create a mini-cluster that shares all the data. Need to think how to implement it in the best way though.

wellKnownPeers is getting a little crowded with 30 names! I'm interested in this cluster idea.

Come-from-Beyond
Legendary
*
Offline Offline

Activity: 2128
Merit: 1009

Newbie


View Profile
December 24, 2013, 07:43:45 PM
 #7053


It's better to copy files. Imagine what will happen if everyone deletes the blockchain simultaneously. Cheesy

Ok, I'll update the guide.
So copying the .bak versions is the proper way?

No. U must copy *.nxt files. Use *.bak only if *.nxt corrupted.
laowai80
Member
**
Offline Offline

Activity: 98
Merit: 10


View Profile
December 24, 2013, 07:47:01 PM
 #7054


It's better to copy files. Imagine what will happen if everyone deletes the blockchain simultaneously. Cheesy

Ok, I'll update the guide.
So copying the .bak versions is the proper way?

No. U must copy *.nxt files. Use *.bak only if *.nxt corrupted.

Ok, I am just trying to set up a simple guide for users who can't operate in linux at all, so too many options would look too complicated.


One observation.
I downloaded a fresh version of NXT to my home PC, installed with default settings, blockchain synced from 0, all good.

But Active peers tab shows only 14 nodes. Is that not too low? Is the reason - the hallmark protection?

notsoshifty
Sr. Member
****
Offline Offline

Activity: 364
Merit: 250


View Profile
December 24, 2013, 07:53:55 PM
 #7055

Quote
CfB has mentioned that if one gets access to the memory of Java Virtual Machine then your passphrase would be exposed.

Quote
That makes forging a *very* risky endeavor!

Wouldn't a big stakeholder have to have the biggest balls in the world to forge?  Everyone knows their IP.  Does everyone know their account number (and balance) if they're forging?  If so, they're a massive target with a huge reward.

To me, this seems key. Has it been addressed?

Putting aside the current client implementation, is it theoretically possible within the API for a node to have enough information to forge/sign a block, but not enough to do anything with the contents of the account (e.g. transfer funds to another account)?
Come-from-Beyond
Legendary
*
Offline Offline

Activity: 2128
Merit: 1009

Newbie


View Profile
December 24, 2013, 07:54:06 PM
 #7056

But Active peers tab shows only 14 nodes. Is that not too low? Is the reason - the hallmark protection?

The reason is low value of maxNumberOfConnectedPublicPeers. It was 20, I set it to 10 in 0.4.4. U can see 14 active peers if 4 of them were with red flags at some moment.
TwinWinNerD
Legendary
*
Offline Offline

Activity: 1680
Merit: 1001


CEO Bitpanda.com


View Profile WWW
December 24, 2013, 07:55:18 PM
 #7057

      24063      5154541454348994634      Dienstag, 24. Dezember 2013 20:54:25   
      
      1      0 + 1      140 B   
      
      1      9348240326299815071      190 %


had some problems with my node, should be back fine now Smiley

0.4.4 seems to solve my problems!

laowai80
Member
**
Offline Offline

Activity: 98
Merit: 10


View Profile
December 24, 2013, 07:55:56 PM
 #7058

But Active peers tab shows only 14 nodes. Is that not too low? Is the reason - the hallmark protection?

The reason is low value of maxNumberOfConnectedPublicPeers. It was 20, I set it to 10 in 0.4.4. U can see 14 active peers if 4 of them were with red flags at some moment.

Ok, clear now.
Come-from-Beyond
Legendary
*
Offline Offline

Activity: 2128
Merit: 1009

Newbie


View Profile
December 24, 2013, 07:55:59 PM
 #7059

Putting aside the current client implementation, is it theoretically possible within the API for a node to have enough information to forge/sign a block, but not enough to do anything with the contents of the account (e.g. transfer funds to another account)?

In future it will be possible to "freeze" an account using multi-sig feature. U can forge but can't do transactions.
laowai80
Member
**
Offline Offline

Activity: 98
Merit: 10


View Profile
December 24, 2013, 07:56:34 PM
 #7060


0.4.4 seems to solve my problems!

Yeah, CfB delivers! We get new features and settings as promised!
Pages: « 1 ... 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 403 ... 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!