Java-Gaming.org    
Featured games (79)
games approved by the League of Dukes
Games in Showcase (477)
Games in Android Showcase (107)
games submitted by our members
Games in WIP (536)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: 1 [2]
  ignore  |  Print  
  Inquiry / Request for feedback [Service: a sandboxed JVM on a public server]  (Read 7979 times)
0 Members and 1 Guest are viewing this topic.
Online Riven
« League of Dukes »

JGO Overlord


Medals: 746
Projects: 4
Exp: 16 years


Hand over your head.


« Reply #30 - Posted 2008-03-24 17:14:43 »

I have found a way to determine heap-usage *per sandbox* in the JVM (heapdump analysis), so I can now let a lot of users share the same JVM to significantly reduce the overhead - while still ensuring everybody gets their own guaranteed heapspace. So now a 64MB share will really be 64MB, without a ~8MB of JVM footprint.


Further, I think I won't have a nice desktop-app to connect to the sandbox - people just have to connect to some port on the server (with a user/pass) and fetch the stdout/stderr/stdin streams from there. FTP will be used for transfering files. For people doing networked games a GUI will probably just get in the way...


I'm extremely busy, and today was the first time I worked on this service, since my latest post in this thread... Undecided

Hi, appreciate more people! Σ ♥ = ¾
Learn how to award medals... and work your way up the social rankings
Offline CommanderKeith
« Reply #31 - Posted 2008-03-25 11:07:57 »

That's fantastic. If you make a simple server demo that runs a jar and gets the std out/in then people should find it pretty easy to use the service.

If you can easily relax the no-reflection security aspect then I'd like to use this with my app.  Cool

What are you busy with these days anyway? I assume it's work, are you doing Swing, NIO, or what?!

Keith

Online Riven
« League of Dukes »

JGO Overlord


Medals: 746
Projects: 4
Exp: 16 years


Hand over your head.


« Reply #32 - Posted 2008-03-25 21:46:56 »

That's fantastic. If you make a simple server demo that runs a jar and gets the std out/in then people should find it pretty easy to use the service.

If you can easily relax the no-reflection security aspect then I'd like to use this with my app.  Cool

What are you busy with these days anyway? I assume it's work, are you doing Swing, NIO, or what?!

Keith


Quite a few posts earlier, I posted that Reflection was supported, at long as you do not use {field|method}.setAccessible(true). I assume that is enough... right? I can't even block 'safe' use of Reflection, even if I'd want to  Smiley



I'm busy with building a large website, with an Applet to build/modify closets in detail, with my own isometric software renderer - it's a webshop in Spain (and I don't speak a word Spanish), and it's about to launch April 4th. *shiver*. The design, development (tens of thousands lines of Javascript - not to mention PHP - aaaaah!!), content management system, ordering stuff, ecommerce-handling is all done by me, and there is a lot at stake - so I'm pretty much working all day on it - that includes nights!

And after April 4th it will be maintainance and support and whatnot - but fortunately no strict deadlines. Smiley




Anyway, I bet I can get a demo server up and running in a few hours. Maybe tomorrow

Hi, appreciate more people! Σ ♥ = ¾
Learn how to award medals... and work your way up the social rankings
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline CommanderKeith
« Reply #33 - Posted 2008-03-26 08:26:15 »


Quite a few posts earlier, I posted that Reflection was supported, at long as you do not use {field|method}.setAccessible(true). I assume that is enough... right? I can't even block 'safe' use of Reflection, even if I'd want to  Smiley


Yes, I remember, I should have said that I needed {field|method}.setAccessible(true) to be allowed.  Tongue

Sounds like a cool project. Even though it's big, at least you've got control over the whole thing from start to finish.

Online Riven
« League of Dukes »

JGO Overlord


Medals: 746
Projects: 4
Exp: 16 years


Hand over your head.


« Reply #34 - Posted 2008-03-26 18:22:11 »

By allowing all reflection, the isolation/sandbox securitymanager can just as well be not there at all.


Just a tiny example:
1  
2  
3  
Field field = System.class.getDeclaredField("security");
field.setAccessible(true);
field.set(null);


Tadaaaa, the SecurityManager is uninstalled. Kiss



The ReflectPermission does not give any info about what field/method is accessed Sad
It's like that NetPermission that doesn't tell me the host the ServerSocket wants to bind to... it's always "localhost", bleh

Hi, appreciate more people! Σ ♥ = ¾
Learn how to award medals... and work your way up the social rankings
Offline blahblahblahh

JGO Coder


Medals: 1


http://t-machine.org


« Reply #35 - Posted 2008-04-09 12:50:27 »

Yes, I remember, I should have said that I needed {field|method}.setAccessible(true) to be allowed.  Tongue

Why? (out of interest)

malloc will be first against the wall when the revolution comes...
Pages: 1 [2]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

Riven (20 views)
2014-07-29 18:09:19

Riven (13 views)
2014-07-29 18:08:52

Dwinin (12 views)
2014-07-29 10:59:34

E.R. Fleming (31 views)
2014-07-29 03:07:13

E.R. Fleming (12 views)
2014-07-29 03:06:25

pw (42 views)
2014-07-24 01:59:36

Riven (42 views)
2014-07-23 21:16:32

Riven (28 views)
2014-07-23 21:07:15

Riven (29 views)
2014-07-23 20:56:16

ctomni231 (60 views)
2014-07-18 06:55:21
HotSpot Options
by dleskov
2014-07-08 03:59:08

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:58:24

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:47:22

How do I start Java Game Development?
by ra4king
2014-05-17 11:13:37

HotSpot Options
by Roquen
2014-05-15 09:59:54

HotSpot Options
by Roquen
2014-05-06 15:03:10

Escape Analysis
by Roquen
2014-04-29 22:16:43

Experimental Toys
by Roquen
2014-04-28 13:24:22
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!