B4J Tutorial [server] Run a Server on a VPS

Status
Not open for further replies.

Beknazar

Member
Licensed User
Longtime User

Erel,
please explain how to start server?
Where it is necessary to write?
thanks
 

avalle

Active Member
Licensed User
Longtime User
Perhaps just useful for noobs...
B4X:
nohup path_to_java/bin/java -jar somejar.jar > nohup.out &

somejar.jar
  • replace the filename with you B4J compiled JAR file.
  • Compile the server app in Release mode.
  • The compiled JAR file can be found in the Objects folder within your B4J project folder.
  • The default name is "result.jar". You can rename it as you like (still keeping the .jar extension ideally).
nohup.out
  • It's the file containing the console output.
  • Rename it as you like.
 

ajk

Active Member
Licensed User
Longtime User
The question may be a bit about the topic: how much theoretically you can squeeze from this type of server? I mean the maximum number of simultaneously served customers.
100 ?, 1000 ?, 1000,000?
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…