Hi resource usage or it is normal?

Hi, i have started experimenting with javafx. i liked it so much. but i noticed it consumes a lot of memory in some cases. Below code generates around 2000 Bubble object. But if you extend the number it gives an out of memory exception. i think this is a pretty small number for occupying 64MB heap. Any comments or suggestions?
public class Bubble extends CustomNode{
    public var cap:Integer;
    public override function create(): Node {
        return Group {
            content: [
                Circle{ opacity:0.1 radius: cap}
                Circle{ opacity:0.2 radius: cap/2}
                Circle{ opacity:0.4 radius: cap/3}
function generate(): Bubble[] {
    var rand:Random = new Random();
    var bubbles: Bubble[]=[];
    for(i in [0..100]) {
        def bubble = Bubble  {
            layoutX:rand.nextInt(300)+100
            layoutY:rand.nextInt(300)+100
            cap: rand.nextInt(10)+10
        insert bubble into bubbles;
    return bubbles;
Stage {
    title: "Dark Cloud"
    width: 500
    height: 500
    scene: Scene {
        content: [
            for(i in [0..20])
                generate()
}

Somehow, it illustrates the power and limitations of JavaFX design.
I also code in Processing, which is more or less Java code using an easy to use graphics library.
Unlike JavaFX, Processing is low level (in 2D), ie. it is a canvas on which you draw primitives. If you want Rectangles, Ellipses or other more or less complex nodes, you have to code them yourself.
The advantage is that you can make tighter code: Your Bubble class creates an Integer, a Group and three Circle, that's 4 Nodes, coming with all their variables, Boolean, Number, sequence of Transformation, various Bounds, Cursor, Effect, functions (the variables, not the members), etc. Even set to their default, that's a lot of memory, even more as a Boolean isn't a Java boolean.
While in Processing, you would do the same class with an int for the cap, two for the coordinates, perhaps a static int for the color if shared by all bubbles, etc. I bet it would take much less memory to do your test than JavaFX does.
Granted, JavaFX is then ready out of the box to do effects and transforms, handle clicks, etc. But sometime, for simple dumb objects, it is just overkill...
So maybe JavaFX isn't suited for applications that are commonplace in Processing, like handling million of particles, unless using tricks like making its own canvas and using bitmap drawing...

Similar Messages

  • Unable to update wip resource usage rate using wip_txn_interface

    Hello All,
    I am unable to update wip resource usage rate using wip_txn_interface.
    The rows were processed in the interface table and Cost Manager also completed normal, but the rows were not updated.
    Can you please help?
    Thanks,
    Gani

    HI Gani,
    Is that stuck with any error?, please provide the error message if possible.
    Thanks,
    Raghav

  • IPS shows Memory usage 80 % is that normal ?

    Hi there.
    I have a 2 5525x configured as active/standy and bot IPS modules configured with defaults there is no internet connection to them and no traffic passing thru , but IPS show memory usage 80% is that normal ?

    Could be, every environment is different when it comes to IPS. It all depends on what signatures you have configured and tuned.
    Sent from Cisco Technical Support Android App

  • Project Online - offline project plan prompts for date range to be entered when accessing Resource Usage view

    When I save a project plan to my local computer from Project Online and open it up in an offline mode and access Resource Usage view I get prompted with Date Range dialog boxes with the first one saying "Show resources/assignments that start or finish
    after:" and the second one with "And before:".
    I don't have any filters that are setup in Project Online that are not available in offline mode to trigger these prompts.
    Please let me know what could be causing the date range prompts. Thanks.

    Hi,
    You probably retrieve an enterprise filter into your local file. Just open the organizer from MS Project, go to the filter tab (be sure to have your project selected in the drop down menu at the top left of right of the organizer) and delete the date range
    filter.
    Hope this helps,
    Guillaume Rouyre, MBA, MCP, MCTS |

  • 'Resource Usage' field in Planner workbench

    Hi,
    Currently the 'Resource Usage' field in Planner Workbench > Item > Routing Operation > Resources doesn't not display decimal places.
    What do I need to change in profile option or preference or anywhere else so that atleast 1 place after decimal is display. In the database column this field has data with decimal places.
    Thanks

    Hi Geert,
    Thanks for the advice.
    I put '1' decimal place in Capacity Plan but it didn't work. Then I entered same value in all decimal places in all tab in Preferences, then it worked.
    Thanks
    Dee

  • Issue with Resource Usage

    When I open up the project plan I see the following in the Resource Usage view for John (resource):
    The level of effort for the task is 8 hrs for that day. However I am seeing a discrepancy where the total effort for that day appears as 9.6 hrs. I don't know where the additional 1.6 hrs is coming from.
    The issue is the same for the other resources in the project.
    Has anyone seen this issue before?
    Thanks in advance. 

    Hi Bomasamudram,
    And you'll only see this check box for Summary Resource Assignemtns if you choose the account each time you start project pro...
    Ben Howard [MVP] | web |
    blog |
    book | P2O

  • Capturing session level resource usage in RAC environment

    I have used Tom Kyte's runstats.sql to capture resource usage by a session in a single instance environment. http://asktom.oracle.com/tkyte/runstats.html
    The procedures in the package take before and after snapshot from v$mystat. My question is how does in change in RAC enviornment with more than one instance?
    There is an equivalent table gv$mystat which has an additional column inst_id. I will appreciate if somebody can provide me some insight.

    I wish everyone would stop using V$ objects where GV$ objects exist. Everything you write using V$ is a minimal or no value when run on a RAC cluster. However everything written using GV$ will always run on a stand-alone database.
    Just convert the code and you should be fine.
    At the University of Washington I never even teach about V$ dynamic performance views beyond the concept that they are a legacy of the time before RAC. There are about 107 V$s that have no global equivalent but they mostly related to instance recovery (RMAN).

  • Specified load buffer resource usage is above currently available value

    Hello,
    I am trying to load data into my ASO database. The .mxl and the rules file
    have worked fine on the development machine but now on another PC I get this
    error while executing the .mxl
    Initialize load_buffer with buffer_id 3
    Execution Message:
    Specified load buffer resource usage [1] is above currently available valu [0]
    The outline verifies fine and there is no other data in this ASO database.
    Does this error mean I have to increase the available resources (how?).
    Thanks
    metalray

    Hi,
    There has to be something wrong with your import statement, also I am not sure why you are spooling the same file as writing the import errors as this will overwrite the file.
    Here is an example of a script I just ran and it ran through without any problems.
    spool on to 'C:\Out1.txt';
    login admin  password on localhost;
    alter database 'ASObasic'.'basic' destroy load_buffer with buffer_id 2;
    alter database 'ASObasic'.'basic' initialize load_buffer with buffer_id 2;
    import database 'ASObasic'.'basic' data connect as 'admin' identified by 'password' using server rules_file 'DATA' to load_buffer with buffer_id 2 on error write to 'C:\Out.out';
    import database 'ASObasic'.'basic' data from load_buffer with buffer_id 2 override values;
    logout;
    I would open a maxl window and try pasting in line by line as well.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Clear resource usage counter on ACE module

    Hi
    Does anybody know how to clear the resource usage counter on an ACE module?
    We use an ACE20-MOD-K2 with version A2(3.5).
    Here you can see that after issuing 'clear stats resource-usage' the counters are still the same.
    uzhlbsrv1/Admin# sh resource usage resource rate bandwidth
                                                         Allocation
            Resource         Current       Peak        Min        Max       Denied
    Context: Admin
      bandwidth                  1966       3971    7487500  625000028          0
    Context: NOZONE
      bandwidth                     0       4450          0  617512528          0
    Context: ZONE1
      bandwidth              14021827  549340375          0  617512528  192084322
    Context: ZONE2
      bandwidth                197520   69634789          0  617512528      29385
    Context: ZONE3
      bandwidth                 38756   78911285          0  617512528    6471653
    Context: ZONE4
      bandwidth                     0       3052          0  617512528          0
    uzhlbsrv1/Admin# clear stats resource-usage
    uzhlbsrv1/Admin# sh resource usage resource rate bandwidth
                                                         Allocation
            Resource         Current       Peak        Min        Max       Denied
    Context: Admin
      bandwidth                   396        841    7487500  625000028          0
    Context: NOZONE
      bandwidth                     0       4450          0  617512528          0
    Context: ZONE1
      bandwidth               9350189  549340375          0  617512528  192084322
    Context: ZONE2
      bandwidth                128087   69634789          0  617512528      29385
    Context: ZONE3
      bandwidth                133229   78911285          0  617512528    6471653
    Context: ZONE4
      bandwidth                     0       3052          0  617512528          0
    Or is it a bug eventually?
    Thanks
    Patrik

    Hi Patrik,
    What could one of the issue here is, if this box is in production and is being used, as soon as you clear the coutners, the new traffic is still flowing in, so ace will populate the new stats. if you take this box out of production then you should be able to see all the traffic gone.
    Also to reinforce my previous argument, if you happen to see the stats second time, they are reduced , which will only point that the system is actively receiving and before you do a second show resource, it would have received some traffic and it will also take into account the existing traffic flow across the box.
    Most likely not a Bug.
    Regards
    Abijith

  • Can't see content of Text Column cells in Resource Usage View

    I am having an issue adding a custom pre-defined & pre-populated text column field to resource usage view ( in a pooled resource situation) in microsoft project 2013. It doesn't see how the Text column has been renamed or the content of those column's
    cells. Is there a workaround for this? Thanks

    TechNew User1111,
    Go to the following website and take a look at FAQs 51 and 37. They will provide the answer. If you still have a question, post back.
    http://project.mvps.org/faqs.htm
    Hope this helps.
    John

  • Irregular resource usage

    (following a different topic, where there does not seem to be a solution...)
    I would like to have one project with all my others projects as tasks, but not sub projects.
    There I assign resources to tasks (really other projects) and then for each project each resource is available according to this master project. 
    Can I manually split assignments of resources to tasks, so that for example a certain resource works 30% on one task from January 1 to March 31 - and 70% on a different task. Then from April 1 he will stop working on the first task and work 100% on the second
    task. 
    I know this can be done manually by using sub tasks, but is it possible to do directly?
    I am using MS Project 2013, (service pack 1), not server.
    Valgardur Gudjonsson

    Hi Valgardur,
    Have you consider using the resource usage view? This will allow you doing what you want on a single task, without having to split it into various sub-tasks. This view shows on the left part all tasks per resources with assignment fields and on the right
    part a "Excel-like" timephased grid you can enter work in.
    In the "view" tab of the ribbon, you can set the timescale to "week" or "month" then type directly in the grid a certain number of hours of planned work per resources per time period. Splitting your window to display the resource
    graph in the bottom part is also very useful.
    Below a screenshot (unfortunately in french):
    Hope this helps.
    Guillaume Rouyre - MBA, MCP, MCTS

  • System resource usage profile

    Our Forte OLTP application runs on HP-UX 10.20. A transaction uses
    resources through the Forte partition and the Oracle database.
    Is there a way to apportion CPU time, Memory, IO bytes, etc to a
    single transaction? Ideally we would indicate the start and the end of a
    transaction and then collect resource usage statistics. As a Forte
    partition is a UNIX process which accumulates the CPU times of all
    transactions processed I see no easy way to break down the CPU usage per
    transaction. We need to do capacity planning and assigning system
    resources to transactions is imperative in order to know when the server
    will become saturated. Any ideas?
    Thanks
    Jose Suriol
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

    Hi,
    What version of project management is the client using? Please take a look at prim55774in our knowledgebase for further information on a possibly cause for why the resource usage profile is blank.
    If this is not the case please contact support for further assistance at:
    http://primavera.com/customer/support.asp.
    Saryn

  • Question on "show resource usage"

    Hi,
    Hope you are doing great!
    the "show resource usage" indicate the  resource usage of the security appliance or for each context.
    I am wondering the below output:
    FWSM# show resource usage
    Resource              Current         Peak      Limit        Denied Context
    SSH                         1            2          5             0 System
    Syslogs [rate]           1573        65155  unlimited             0 System
    Conns                   29937       192916  unlimited             0 System
    Xlates                   6751       180865  unlimited             0 System
    Hosts                    6218        65515  unlimited             0 System
    Conns [rate]              665        32500  unlimited             0 System
    Fixups [rate]             467         4617  unlimited             0 System
    FWSM#
    does it mean the FWSM is generating 1573 syslogs/second currently? and it used to generate 65155  syslog/second?
    I don't believe the FWSM can generate 65155 syslogs per second....
    does it mean anything else?
    Thanks!

    Hello,
    The command can be use on single and multiple mode:
    Example:
    show resource usage context admin
    Check this links for more information about this command:
    http://www.cisco.com/en/US/docs/security/asa/asa84/command/reference/s4.html#wp1527546
    Not sure if the syslogs are per second or what is interval, but yes, those are the amount of logs being generated.
    Regards,
    Felipe.

  • MARS Reporting: Resource Usage

    Hello,
    I have added 20+ devices to MARS successfully. However, when I view the Resource usage report (i.e. CPU, Memory etc) I only see 10 devices and in some case only couple. Why doesn't the report list all the devices.
    Secondly, is it possible to view the bandwidth in bits per sec and can the report be extracted in form of a table with relevant values against specific time intervals.
    Thanks.

    MARS does not discover L2 devices automatically as it does with L3 devices. Ensure all the devices are reachable or not. And also check the configuration and the logs.
    http://www.cisco.com/en/US/docs/security/security_management/cs-mars/6.0/user/guide/combo/cfgOver.html#wp363870

  • ACE ANM Resource Usage Graph Data Retention

    Is there a way to get more than 30 days worth of data from the Resource Usage Graphs in ANM monitoring?

    Hi,
    The max is one month. I don't know of any way to get more than that.
    http://www.cisco.com/c/en/us/td/docs/app_ntwk_services/data_center_app_services/application_networking_manager/5-2-3/user/guide/User_Guide/UG_monitor.html#wp1326696
    Please visit section "Configuring Historical Trend and Real Time Graphs for Devices" for more details.
    Regards,
    Kanwal
    Note: Please mark answers if they are helpful.

Maybe you are looking for

  • Getting ORA-24801: error when reading a CLOB data using BufferReader

    I am getting the "ORA-24801: illegal parameter value in OCI lob function", when reading a CLOB using a BufferedReader, i am using "oracle.jdbc.OracleDriver" for creating a connection pool and using Oracle 9.2.0.7 with Weblogic 8.1 SP 5. My code looks

  • Time Capsule on Windows 7 : cannot connect to the hardrive

    Hello All, From sudden i cannot access to my Timecapsule Hardrive. Right now the issue are : I cant ping it (No answer) I can see it under Networks but cannot open it. I tried : To re install Airport utility and Bonjour Downgrade the firmware of the

  • External hard drive not working in USB multi-port adapter

    Hi, I was wondering if anyone had a suggestion...I got a new My Passport Essential portable external hard-drive. I have a Belkin multi (4) USB adapter and when I plug the hard-drive in, it won't recognize it. It only works if I directly plug it into

  • Creative Cloud - Download error - stubborn error

    This seems to be inconsistency quality assurance going on with Creative Cloud using Adobe Application Manager, I always get this stubborn - darn stubborn error message "Download error. Please contact customer support." In this case, I have no idea wh

  • Vendor Master File - Back order allowed

    My client is using ECC 6.0 Retail We would like to automatically allow or not, back order from certan vendors. We are using also TM and WM. The Inbound Deliveries are created automatically at night and POs are manually closed by the buyers. If there