Adriana Posted July 12, 2013 Share Posted July 12, 2013 i have 12gb Ram so i figured i could easily allocate a good 8gb of RAM to run my bots (i run 20 bots) i made a .bat file got it to work finnally and when ever i set the memory to 3gb only like this... java -Xmx3072M -Xms3072M -jar "OSBot.jar"pause It tells me this http://puu.sh/3AYBo.png But my PC has this much RAM http://puu.sh/3AYC3.png ....Theoretically...couldnt i allocated up to 10gb of RAM to OSBot? Saving the other 2 which is more than enough to run the other processes on my machine? Why am i getting capped? i dont know what the exact limit is i havent fiddled with it that much but i know that i can allocate 1GB but when i try 3GB i get that error... help please ^_^ Link to comment Share on other sites More sharing options...
Led Zeppelin Posted July 12, 2013 Share Posted July 12, 2013 Do you have 3 4gb cards or some other number? if theyre not all the same they wont work together.... Link to comment Share on other sites More sharing options...
Ambassador Posted July 12, 2013 Share Posted July 12, 2013 I don't have an answer but I can say that OSBot isn't the only client that limits you to 1024 mb of ram. I'm wondering the reason for this too. This kinda reminds me of something also kinda number limited related... The reason runescape only has a max stack of 2,147M is because the way Java is programmed. It holds up to 10 digits (2,147,000,000) Do you have 3 4gb cards or some other number? if theyre not all the same they wont work together.... This is not why. It's a software issue not hardware. Link to comment Share on other sites More sharing options...
Led Zeppelin Posted July 12, 2013 Share Posted July 12, 2013 I don't have an answer but I can say that OSBot isn't the only client that limits you to 1024 mb of ram. I'm wondering the reason for this too. This kinda reminds me of something also kinda number limited related... The reason runescape only has a max stack of 2,147M is because the way Java is programmed. It holds up to 10 digits (2,147,000,000) Do you have 3 4gb cards or some other number? if theyre not all the same they wont work together.... This is not why. It's a software issue not hardware. Thats odd than, i have a dedicated server and it allocates all of it to OSbot but i have it set to Realtime priority in the Task Manager.... Link to comment Share on other sites More sharing options...
Graphical Posted July 12, 2013 Share Posted July 12, 2013 (edited) @Dopey, The real reason why Runescape can only have a max of 2,147M is that for the stacks they declare them as int. It saves memory. Java int:int is 32 bit signed type ranges from –2,147,483,648 to 2,147,483,647. Whereas if they had used long to declare stacks: long: The long data type is a 64-bit signed two's complement integer. It has a minimum value of -9,223,372,036,854,775,808 and a maximum value of 9,223,372,036,854,775,807 (inclusive). Use this data type when you need a range of values wider than those provided by int.The reason runescape only has a max stack of 2,147M is because the way Java is programmed. It holds up to 10 digits (2,147,000,000) Other types: byte: The byte data type is an 8-bit signed two's complement integer. It has a minimum value of -128 and a maximum value of 127 (inclusive). The byte data type can be useful for saving memory in large arrays, where the memory savings actually matters. They can also be used in place of int where their limits help to clarify your code; the fact that a variable's range is limited can serve as a form of documentation. short: The short data type is a 16-bit signed two's complement integer. It has a minimum value of -32,768 and a maximum value of 32,767 (inclusive). As with byte, the same guidelines apply: you can use a short to save memory in large arrays, in situations where the memory savings actually matters. int: The int data type is a 32-bit signed two's complement integer. It has a minimum value of -2,147,483,648 and a maximum value of 2,147,483,647 (inclusive). For integral values, this data type is generally the default choice unless there is a reason (like the above) to choose something else. This data type will most likely be large enough for the numbers your program will use, but if you need a wider range of values, use long instead. long: The long data type is a 64-bit signed two's complement integer. It has a minimum value of -9,223,372,036,854,775,808 and a maximum value of 9,223,372,036,854,775,807 (inclusive). Use this data type when you need a range of values wider than those provided by int. float: The float data type is a single-precision 32-bit IEEE 754 floating point. Its range of values is beyond the scope of this discussion, but is specified in the Floating-Point Types, Formats, and Values section of the Java Language Specification. As with the recommendations for byte and short, use a float (instead of double) if you need to save memory in large arrays of floating point numbers. This data type should never be used for precise values, such as currency. For that, you will need to use the java.math.BigDecimal class instead. Numbers and Strings covers BigDecimal and other useful classes provided by the Java platform. double: The double data type is a double-precision 64-bit IEEE 754 floating point. Its range of values is beyond the scope of this discussion, but is specified in the Floating-Point Types, Formats, and Values section of the Java Language Specification. For decimal values, this data type is generally the default choice. As mentioned above, this data type should never be used for precise values, such as currency. boolean: The boolean data type has only two possible values: true and false. Use this data type for simple flags that track true/false conditions. This data type represents one bit of information, but its "size" isn't something that's precisely defined. char: The char data type is a single 16-bit Unicode character. It has a minimum value of '\u0000' (or 0) and a maximum value of '\uffff' (or 65,535 inclusive). Edited July 12, 2013 by Graphical 1 Link to comment Share on other sites More sharing options...
Adriana Posted July 12, 2013 Author Share Posted July 12, 2013 (edited) . Edited July 12, 2013 by brandon11214 Link to comment Share on other sites More sharing options...
Led Zeppelin Posted July 12, 2013 Share Posted July 12, 2013 Do you have 3 4gb cards or some other number? if theyre not all the same they wont work together.... Yes, Slot 1: 4gb RAM Slot 2: 4gb RAM Slot 3: Empty Slot 4: 4gb RAM sucks can only allocated 1024mb...if i could allocate more....i could run like........50 bots.......im already @ 21 and counting @50fps each Do you have 3 4gb cards or some other number? if theyre not all the same they wont work together.... Yes, Slot 1: 4gb RAM Slot 2: 4gb RAM Slot 3: Empty Slot 4: 4gb RAM sucks can only allocated 1024mb...if i could allocate more....i could run like........50 bots.......im already @ 21 and counting @50fps eacH hmmm idk mate... Link to comment Share on other sites More sharing options...
Adriana Posted July 12, 2013 Author Share Posted July 12, 2013 Do you have 3 4gb cards or some other number? if theyre not all the same they wont work together.... Yes, Slot 1: 4gb RAM Slot 2: 4gb RAM Slot 3: Empty Slot 4: 4gb RAM sucks can only allocated 1024mb...if i could allocate more....i could run like........50 bots.......im already @ 21 and counting @50fps eac I don't have an answer but I can say that OSBot isn't the only client that limits you to 1024 mb of ram. I'm wondering the reason for this too. This kinda reminds me of something also kinda number limited related... The reason runescape only has a max stack of 2,147M is because the way Java is programmed. It holds up to 10 digits (2,147,000,000) Do you have 3 4gb cards or some other number? if theyre not all the same they wont work together.... This is not why. It's a software issue not hardware. Thats odd than, i have a dedicated server and it allocates all of it to OSbot but i have it set to Realtime priority in the Task Manager.... Can u show me how to do this? Link to comment Share on other sites More sharing options...
Khanz Posted July 12, 2013 Share Posted July 12, 2013 Why not just it as it is? Link to comment Share on other sites More sharing options...
lalala1234 Posted July 12, 2013 Share Posted July 12, 2013 Go into task manager, right click javaw.exe and click set priority to real time, but only do it if its the only thing you're running. Link to comment Share on other sites More sharing options...
Adriana Posted July 12, 2013 Author Share Posted July 12, 2013 Why not just it as it is? because, and dont quote me on this, but i think OSBot default alocation is 512mb, with a max of 1024, so you get double the bots/frame rate if u fuck with it. Link to comment Share on other sites More sharing options...
harrynoob Posted July 12, 2013 Share Posted July 12, 2013 A solution which can be provided would be running a single bot per JVM. However, you are probably unable to achieve this. Can you not run multiple instances of the client? Link to comment Share on other sites More sharing options...
Fringie Posted July 12, 2013 Share Posted July 12, 2013 Just run multiple instances of the client. Link to comment Share on other sites More sharing options...
ScorpioZ Posted July 12, 2013 Share Posted July 12, 2013 (edited) All in all, it's a java thing. Allocating more than 1gb of ram to the program isn't worth doing, it's just pointless stress on your computer. Will not increase FPS, will not allow you to run more tabs Just run multiple windows and you should be fine edit: not sure why it copy pasted my message twice lol..fixed Edited July 12, 2013 by ScorpioZ Link to comment Share on other sites More sharing options...
H0ppy Posted July 12, 2013 Share Posted July 12, 2013 Indeed Just open multiple instances ... No need to allocate more then needed ^^ Link to comment Share on other sites More sharing options...