|
|
|
|||||
|
Is it feasible to use IcePatch2+Gacier2?
hi,
The manu said: As with all Ice services, IcePatch2 can be configured to use Ice facilities such as Glacier2 for firewall support and IceSSL for secure communication.( P1190 , ICE2.1.2). But I have some questions about it. 1) As I understand(I am not very sure ), the glacier2router will buffer the data from server. If the data is not large, such as in the chat demo,it is ok . However, If the data is from IcePatch server, the situation is very different. I think it seems impossible for glacier2router to buffer the large data ,say, 100M from icepatch,especially to deal with the concurrence issues. The memory of glacier2router will soon be exhausted. Actually, the memory of glacier2router is always not easy due to its inherent thread per connection model. 2) If My obove understanding is right, it is also impossible for glacier2router to be as a bridge to transfer any large data. I checked the diagram of "Wish: an Ultra Massive Online Game built with Ice", there is not a icepatch server. So I just feel curious how the wish to deal with the situation that when the game is upgraded then the players can upgrade their client program online. Maybe, there is a seperated server without using glacier2 to support downloading. 3) In our current project, after two months studying ice, I have almost decided to use glacier2router as the front end of our server. But I suddenly realize that it seems not feasible for it to transfer large data. I cried so hard .Hope my worry is not necessary , or hope find a remedy. 4) I have learned so much knowledge from ice staff, especially about glacier2router. But I still advise that you can give a specification about the least thread stack size and the most connections the glacier2router can support since this configuration seems not dependent on the applications as Bernard once said. Best regards OrNot |
|
|||||
|
Quote:
. I feel kind of guilty since I asked more even after your generous and inspiring answers and what I can say only is to thank you . Our project is to implement a network administration software for our campus computer center. Ice is so great and is the right tool to develope it. So I have to try my best to learn it. Thank you again.Quote:
Quote:
. What I mainly worry about is that the more connections, the more memory consumtion and the server breaks down. I can not figure out how a server to deal with 8000 connections with even 128K thread stack size when the buffer mode is turned on. Of course I , a developer, can try the stack size to find a proper value,but it is realistic to ask the client without any ice knowlege to try and try until before the server break down? In the opinion of mine, It is better to give some advice such as " if the server has 2G memory, the least thread size is xxx, and the recommended size is xxx, if the server has 1 G , then ...." , At the same time , the connections most allowed may be advised. Even it is OS dependent , it is also possible to give a recommended value. So far as our project, I expect that I can tell the campus computer center that our software with a stack size set in advance can support at most 2000 connections with a server,say, 2G memory. Instead , I can not tell them that you can first set the value 256K, if connections inrease and your server breaks down, just set it to 128K. BTW: what's the thread stack size of the Wish(if not a commercial secret) ? Quote:
Last edited by OrNot : 07-26-2005 at 09:32 AM. |
|
||||||
|
Quote:
I recommend to simply set the stack size to somewhat less than the total virtual memory that you want Glacier2 to use, divided by the number of threads. If you have a 64-bit operating system, then this usually means that you can set it as large as you like (or just keep the default), because your total virtual memory is so large, that any thread size will do. If you have a 32-bit operating system, and let's say 1000 concurrent clients in unbuffered mode (meaning 1000 threads), and you want Glacier2 to use at most 2GB out of the total 4GB virtual memory available, then use less than 2GB / 1000 = 2MB. Last edited by marc : 07-26-2005 at 07:56 AM. |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| IcePatch2 - Decompressor | panchubi | Help Center | 1 | 01-31-2007 03:21 PM |
| Icepatch2 in java | panchubi | Help Center | 1 | 01-24-2007 08:38 PM |
| Using IcePatch2 with Java | zhi | Help Center | 1 | 12-18-2006 02:13 AM |
| IcePatch2 and IceBox | sinofool | Help Center | 2 | 10-30-2006 09:33 PM |
| IcePatch2 modify | hellocyf | Patches | 3 | 07-26-2006 01:38 AM |