View Full Version : making own la2 server, java -> exe
Katsuragi
28.01.2006, 01:29
As I heard, main problems of Java servers are
1. so called "resource limit" wich brings low numbers of supported online about 500 max or so.
2. geodata ;)
What if compile java to exe to free from java virtual machine and solve problem 1? Is it possible? There are programms, that can make such a compilation. Would they help?
russian: Что если ява сервер скопилировать в ехе и освободиться от ограничений ява-машины? Есть программы которые делают такую компиляцию. Помогут ли они?
i'm thinking recode java server in c++ lenguage for full resource, and the geodata will be the same like l2 off server, btw the new server coded in c++ will be more complete.
cya
Katsuragi
28.01.2006, 02:54
yeah, but why "recode"? We can just "compile" it.
yeah, but why "recode"? We can just "compile" it.
you can't compile that (except jar file), the most powerful thing of c++ is the low level code, not like java.
the problem is another:
L2J: uses NIO = 1 Thread = 1 Socket
L2off: uses IOCP (overlapped ports, works only with win2k3, win2k and, limited, winXP): 1 Thread = N Sockets (usually is 2 Threads for every CPU plus 1 Thread dedicated to the "Accept" of the connection request from the client)
The cause that makes L2J sink is just this (and also bad coding, but the bigger thing is this). Of course no way to do IOCP under Java (too much "free-OS" language), same for Mono (on Linux IOCP doesn't exists, but someone said me that is possible to do something like this on openBSD... dunno.)
In C++/Delphi/C#/VB, instead, you can do it.
L2d, my freezed "porting" of l2j to delphi (but using DB of L2off), is using IOCP and i have successfully tested it with I/O with 10k users connected for 1 hour... (just junk data,don't think that was working with the L2 client!!)
If there are Delphi developers, it will be nice to resume the L2d project... (working alone is sad). Actually implemented:
Log system
IOCP system
Packets Encrypt\Decrypt
something else...
Emulate Java machine? o_O
I don't think, that it increase resource limit =\
btw, Geodata in a L2J already not a problem ;)
eh, you mean that l2j don't have geodata?
wanna walk thru some walls?
eh, you mean that l2j don't have geodata?
wanna walk thru some walls?
At that moment - yes, mobs walks thru the walls :D
but, L2J w/geo already in testing ^^ :)
the problem is another:
L2J: uses NIO = 1 Thread = 1 Socket
L2off: uses IOCP (overlapped ports, works only with win2k3, win2k and, limited, winXP): 1 Thread = N Sockets (usually is 2 Threads for every CPU plus 1 Thread dedicated to the "Accept" of the connection request from the client)
The cause that makes L2J sink is just this (and also bad coding, but the bigger thing is this). Of course no way to do IOCP under Java (too much "free-OS" language), same for Mono (on Linux IOCP doesn't exists, but someone said me that is possible to do something like this on openBSD... dunno.)
In C++/Delphi/C#/VB, instead, you can do it.
L2d, my freezed "porting" of l2j to delphi (but using DB of L2off), is using IOCP and i have successfully tested it with I/O with 10k users connected for 1 hour... (just junk data,don't think that was working with the L2 client!!)
If there are Delphi developers, it will be nice to resume the L2d project... (working alone is sad). Actually implemented:
Log system
IOCP system
Packets Encrypt\Decrypt
something else...
L2J doesnt use NIO anymore
i'm a delphi developer, if i can help, will be nice
but limit to version 7 (not delphi 2004-2005/.NET version)
kepler001
29.01.2006, 05:12
Very good l2j
:D
What point in discussing l2j *here* eh?
l2j.sf.net isn't enough anymore?
...
L2d, my freezed "porting" of l2j to delphi (but using DB of L2off), is using IOCP and i have successfully tested it with I/O with 10k users connected for 1 hour... (just junk data,don't think that was working with the L2 client!!)
If there are Delphi developers, it will be nice to resume the L2d project... (working alone is sad). Actually implemented:
Log system
IOCP system
Packets Encrypt\Decrypt
something else...
So, u want to resume project for public ? project seems to have a good foundation
If there are Delphi developers
Yes, there are delphi developers interested in L2 (it is was not discussed as dev language at all on this forum as I see). I also implemented crypto for game and login server. But i'm thinking about threads pool where each free thread will check each socket in sockets array for the data with IOCTL call and use recv and process data. Have not checked perfomance but IOCL exists in any OS (*ix and win32) and give good perfomance under unix at least.
L2j is better... my opinion... so waht if a monster goes from a wall (l2j) ? better then stucking in middle of the road (l2off)
YES! L2off was better at begining (and now for high capacity of players), but now L2j is much more better (about 800 players, but java do not suport more then that...,)
Easy to edit, easy to fix bugs for your own...
Of course a better alternative, like a hybrid L2off with L2j will result in smt better then all...
again.. is my opinion...
greenhope
22.02.2006, 23:48
I never think l2j can handle more than 500+ ppl and will not think about it with current ugly dev team (most talent coders have been quit or kicked out)...
kepler001
23.02.2006, 00:26
L2J = 800users??
L2J = 100 users man
xD
l2j = 100 :D
l2j = 150 user crash server :P
l2j ~ 400 users ... but no matter ... want to make an l2 emu in delphi or not ? :)